public class XAttributeTimestampImpl extends XAttributeImpl implements XAttributeTimestamp
FORMATTER| Constructor and Description |
|---|
XAttributeTimestampImpl(java.lang.String key,
java.util.Date value)
Creates a new instance.
|
XAttributeTimestampImpl(java.lang.String key,
java.util.Date value,
XExtension extension)
Creates a new instance.
|
XAttributeTimestampImpl(java.lang.String key,
long millis)
Creates a new instance.
|
XAttributeTimestampImpl(java.lang.String key,
long millis,
XExtension extension)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(XVisitor visitor,
XAttributable attributable) |
java.lang.Object |
clone()
Attributes must be cloneable.
|
int |
compareTo(XAttribute other) |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getValue()
Retrieves the timestamp value of this attribute.
|
long |
getValueMillis()
Retrieves the timestamp value of this attribute, in milliseconds.
|
void |
setValue(java.util.Date value)
Assigns the timestamp value of this attribute.
|
void |
setValueMillis(long value)
Assigns the timestamp value of this attribute in milliseconds.
|
java.lang.String |
toString()
String representation of the value.
|
getAttributes, getExtension, getExtensions, getKey, hasAttributes, hashCode, setAttributesfinalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getKeygetAttributes, getExtensions, hasAttributes, setAttributespublic XAttributeTimestampImpl(java.lang.String key,
java.util.Date value)
key - The key of the attribute.value - Value of the attribute.public XAttributeTimestampImpl(java.lang.String key,
java.util.Date value,
XExtension extension)
key - The key of the attribute.value - Value of the attribute.extension - The extension of the attribute.public XAttributeTimestampImpl(java.lang.String key,
long millis)
key - The key of the attribute.millis - Value of the attribute, in milliseconds.public XAttributeTimestampImpl(java.lang.String key,
long millis,
XExtension extension)
key - The key of the attribute.millis - Value of the attribute, in milliseconds.extension - The extension of the attribute.public java.util.Date getValue()
XAttributeTimestampgetValue in interface XAttributeTimestamppublic long getValueMillis()
XAttributeTimestampgetValueMillis in interface XAttributeTimestamppublic void setValue(java.util.Date value)
XAttributeTimestampsetValue in interface XAttributeTimestampvalue - Value of the attribute.public void setValueMillis(long value)
XAttributeTimestampsetValueMillis in interface XAttributeTimestampvalue - Value of the attribute.public java.lang.String toString()
XAttributetoString in interface XAttributetoString in class java.lang.Objectpublic java.lang.Object clone()
XAttributeclone in interface XAttributeclone in class XAttributeImplpublic boolean equals(java.lang.Object obj)
equals in class XAttributeImplpublic int compareTo(XAttribute other)
compareTo in interface java.lang.Comparable<XAttribute>compareTo in class XAttributeImplpublic void accept(XVisitor visitor, XAttributable attributable)
accept in interface XAttribute