Package com.yahoo.jrt

Class Values


  • public class Values
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Values()
      Create an empty sequence of values
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Values add​(Value value)
      Add a value to the end of the sequence
      Value get​(int idx)
      Obtain a specific value from this sequence
      boolean satisfies​(java.lang.String types)
      Check whether the values stored in this object satisfies the given type string.
      int size()
      Obtain the number of values in this sequence
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Values

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

      • satisfies

        public boolean satisfies​(java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object