Package com.yahoo.jrt

Class 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 Detail

      • Values

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

      • 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