public final class DateAttribute extends BaseAttribute
Constructor and Description |
---|
DateAttribute(java.lang.String id,
long timestampMs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getTime() |
int |
hashCode() |
java.lang.String |
toString() |
getId
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.