public final class DateAttribute extends BaseAttribute
Constructor and Description |
---|
DateAttribute(java.lang.String id,
long timestampMs) |
public DateAttribute(java.lang.String id, long timestampMs)
id
- of the DatetimestampMs
- of the Date in ms since epoch.java.lang.IllegalArgumentException
- when id id null or empty.public long getTime()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare against.