com.ibm.icu.util
Class DateInterval

java.lang.Object
  extended by com.ibm.icu.util.DateInterval
All Implemented Interfaces:
Serializable

public final class DateInterval
extends Object
implements Serializable

This class represents date interval. It is a pair of long representing from date 1 to date 2.

See Also:
Serialized Form
Status:
Draft ICU 4.0.

Constructor Summary
DateInterval(long from, long to)
          Constructor given from date and to date.
 
Method Summary
 boolean equals(Object a)
          Override equals
 long getFromDate()
          Get the from date.
 long getToDate()
          Get the to date.
 int hashCode()
          Override hashcode
 String toString()
          Override toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Status:
Draft ICU 4.0.
Method Detail

getFromDate

public long getFromDate()
Get the from date.

Returns:
the from date in dateInterval.
Status:
Draft ICU 4.0.

getToDate

public long getToDate()
Get the to date.

Returns:
the to date in dateInterval.
Status:
Draft ICU 4.0.

equals

public boolean equals(Object a)
Override equals

Overrides:
equals in class Object
Status:
Draft ICU 4.0.

hashCode

public int hashCode()
Override hashcode

Overrides:
hashCode in class Object
Status:
Draft ICU 4.0.

toString

public String toString()
Override toString

Overrides:
toString in class Object
Status:
Draft ICU 4.0.


Copyright (c) 2009 IBM Corporation and others.