Serializablepublic final class DateInterval extends Object implements Serializable
| 构造器 | 说明 |
|---|---|
DateInterval(long from,
long to) |
Constructor given from date and to date.
|
public DateInterval(long from,
long to)
from - The from date in date interval.to - The to date in date interval.public long getFromDate()
public long getToDate()
public boolean equals(Object a)
equals 在类中 Objecta - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.Object.hashCode(),
HashMappublic int hashCode()
hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)