Class DateRange

java.lang.Object
com.here.sdk.search.DateRange

public final class DateRange extends Object

Represents the date range when the tariff element is valid. This is typically used to indicate seasonal tariffs or to announce an update to the tariff in advance. It may also be used to indicate spot prices, together with time period. Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    First date when the element is valid.
    First date when the element is no longer valid, exclusive and later than from.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • from

      @Nullable public Date from

      First date when the element is valid. If absent the element becomes valid as soon as other conditions allow.

    • to

      @Nullable public Date to

      First date when the element is no longer valid, exclusive and later than from. If absent the element is valid until some other element takes over.

  • Constructor Details

    • DateRange

      public DateRange()

      Creates a new instance.

  • Method Details