class DateRangeBound
Represents a date range boundary, composed by a Date
and a precision.
- Static
- This class is static
Members
Date
date
The timestamp portion of the boundary.
Number
precision
The precision portion of the boundary. Valid values are defined in the
dateRangePrecision
member.
DateRangeBound
DateRangeBound.unbounded
The unbounded DateRangeBound
instance. Unbounded bounds are syntactically represented by a *
(star) sign.
- Static
- This member is static
Constructor
Methods
equals
(DateRangeBound
other)
Returns true if the value of this DateRange instance and other are the same.
DateRangeBound.fromString
(String
boundaryString)
Parses a date string and returns a DateRangeBound.
- Static
- This function is static
DateRangeBound.toLowerBound
(DateRangeBound
bound)
Converts a {DateRangeBound} into a lower-bounded bound by rounding down its date based on its precision.
- Static
- This function is static
toString
()Returns the string representation of the instance.
DateRangeBound.toUpperBound
(DateRangeBound
bound)
Converts a {DateRangeBound} into a upper-bounded bound by rounding up its date based on its precision.
- Static
- This function is static