Class ValueSet


  • public class ValueSet
    extends java.lang.Object
    A ValueSet(long) describes a collection of data, accompanied by an optional timestamp.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueSet​(long timestamp)
      Creates a new {link #ValueSet} instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addValue​(java.lang.String name, java.lang.Object value)
      Adds a named value.
      long getTime()
      Returns the timestamp of this value set.
      java.util.Map<java.lang.String,​java.lang.Object> getValues()
      Returns the key/value pairs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValueSet

        public ValueSet​(long timestamp)
        Creates a new {link #ValueSet} instance.
        Parameters:
        timestamp - the timestamp, or -1 if not applicable
    • Method Detail

      • addValue

        public void addValue​(java.lang.String name,
                             java.lang.Object value)
        Adds a named value.
        Parameters:
        name - the name of the value, must not be null
        value - the value
      • getTime

        public long getTime()
        Returns the timestamp of this value set.
        Returns:
        the timestamp of this value set
      • getValues

        public java.util.Map<java.lang.String,​java.lang.Object> getValues()
        Returns the key/value pairs.
        Returns:
        the key/value pairs