Package com.xceptance.xlt.api.report.external

# Class ValueSet

java.lang.Object
com.xceptance.xlt.api.report.external.ValueSet

public class ValueSet extends 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

  Modifier and Type
  Method
  Description
  `void`
  `addValue(String name, Object value)`
  Adds a named value.
  `long`
  `getTime()`
  Returns the timestamp of this value set.
  `Map<String,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 Details

  - ### ValueSet

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

- ## Method Details

  - ### addValue

    public void addValue(String name, 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 Map<String,Object> getValues()
    Returns the key/value pairs.
    Returns:
      the key/value pairs