Class XAttributeTimestampImpl

    • Constructor Detail

      • XAttributeTimestampImpl

        public XAttributeTimestampImpl​(java.lang.String key,
                                       java.util.Date value)
        Creates a new instance.
        Parameters:
        key - The key of the attribute.
        value - Value of the attribute.
      • XAttributeTimestampImpl

        public XAttributeTimestampImpl​(java.lang.String key,
                                       java.util.Date value,
                                       XExtension extension)
        Creates a new instance.
        Parameters:
        key - The key of the attribute.
        value - Value of the attribute.
        extension - The extension of the attribute.
      • XAttributeTimestampImpl

        public XAttributeTimestampImpl​(java.lang.String key,
                                       long millis)
        Creates a new instance.
        Parameters:
        key - The key of the attribute.
        millis - Value of the attribute, in milliseconds.
      • XAttributeTimestampImpl

        public XAttributeTimestampImpl​(java.lang.String key,
                                       long millis,
                                       XExtension extension)
        Creates a new instance.
        Parameters:
        key - The key of the attribute.
        millis - Value of the attribute, in milliseconds.
        extension - The extension of the attribute.
    • Method Detail

      • getValue

        public java.util.Date getValue()
        Description copied from interface: XAttributeTimestamp
        Retrieves the timestamp value of this attribute.
        Specified by:
        getValue in interface XAttributeTimestamp
        Returns:
        Value of this attribute.
      • getValueMillis

        public long getValueMillis()
        Description copied from interface: XAttributeTimestamp
        Retrieves the timestamp value of this attribute, in milliseconds.
        Specified by:
        getValueMillis in interface XAttributeTimestamp
        Returns:
        Value of this attribute.
      • setValue

        public void setValue​(java.util.Date value)
        Description copied from interface: XAttributeTimestamp
        Assigns the timestamp value of this attribute.
        Specified by:
        setValue in interface XAttributeTimestamp
        Parameters:
        value - Value of the attribute.
      • setValueMillis

        public void setValueMillis​(long value)
        Description copied from interface: XAttributeTimestamp
        Assigns the timestamp value of this attribute in milliseconds.
        Specified by:
        setValueMillis in interface XAttributeTimestamp
        Parameters:
        value - Value of the attribute.
      • toString

        public java.lang.String toString()
        Description copied from interface: XAttribute
        String representation of the value.
        Specified by:
        toString in interface XAttribute
        Overrides:
        toString in class java.lang.Object
        Returns:
        Returns the String representation of the value.
      • clone

        public java.lang.Object clone()
        Description copied from interface: XAttribute
        Attributes must be cloneable.
        Specified by:
        clone in interface XAttribute
        Overrides:
        clone in class XAttributeImpl
        Returns:
        A clone of this attribute.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class XAttributeImpl