Package com.yahoo.jrt

Class Values

java.lang.Object
com.yahoo.jrt.Values

public class Values extends Object
A sequence of values used to represent parameters and return values associated with a Request. The individual values are represented by Value objects.
  • Constructor Details

    • Values

      public Values()
      Create an empty sequence of values
  • Method Details

    • satisfies

      public boolean satisfies(String types)
      Check whether the values stored in this object satisfies the given type string.
      Parameters:
      types - type string
      Returns:
      true if this value sequence satisfies 'types'
    • add

      public Values add(Value value)
      Add a value to the end of the sequence
      Parameters:
      value - the value to add
      Returns:
      this, to enable chaining
    • get

      public Value get(int idx)
      Obtain a specific value from this sequence
      Parameters:
      idx - the index of the value to obtain
      Returns:
      a value from this sequence
    • size

      public int size()
      Obtain the number of values in this sequence
      Returns:
      the number of values in this sequence
    • toString

      public String toString()
      Overrides:
      toString in class Object