Class TimestampValuePair

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class TimestampValuePair
    extends java.lang.Object
    implements java.io.Externalizable
    This class associates a timestamp to a value
    See Also:
    Serialized Form
    • Constructor Detail

      • TimestampValuePair

        public TimestampValuePair​(int timestamp,
                                  byte[] value)
        Constructor
        Parameters:
        timestamp - Timestamp
        value - Value
      • TimestampValuePair

        public TimestampValuePair()
        Empty construtor
    • Method Detail

      • setHashedValue

        public void setHashedValue​(byte[] hashedValue)
        Set the value's hash
        Parameters:
        hashedValue - Sintese do valor
      • getHashedValue

        public byte[] getHashedValue()
        Get the value's hash
        Returns:
        hash of the value
      • getTimestamp

        public int getTimestamp()
        Get timestamp
        Returns:
        The timestamp
      • getValue

        public byte[] getValue()
        Get value
        Returns:
        Value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException