Package com.yahoo.jrt
Class Values
- java.lang.Object
-
- com.yahoo.jrt.Values
-
public class Values extends Object
-
-
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 sequenceValue
get(int idx)
Obtain a specific value from this sequenceboolean
satisfies(String types)
Check whether the values stored in this object satisfies the given type string.int
size()
Obtain the number of values in this sequenceString
toString()
-
-
-
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
-
-