Package com.ibm.icu.util
Class DateInterval
java.lang.Object
com.ibm.icu.util.DateInterval
- All Implemented Interfaces:
Serializable
This class represents date interval.
It is a pair of long representing from date 1 to date 2.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DateInterval
public DateInterval(long from, long to) Constructor given from date and to date.- Parameters:
from
- The from date in date interval.to
- The to date in date interval.
-
-
Method Details
-
getFromDate
public long getFromDate()Get the from date.- Returns:
- the from date in dateInterval.
-
getToDate
public long getToDate()Get the to date.- Returns:
- the to date in dateInterval.
-
equals
Override equals -
hashCode
public int hashCode()Override hashcode -
toString
Override toString
-