public interface AnySeq extends java.util.List<Any>, Any
AnySeq does not allow null values!
Any.ValueType| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Any element) |
boolean |
add(java.lang.Number number)
Long, Integer, Short and Byte values will be converted to Value object of type LONG, all others to Value object of
type DOUBLE.
|
boolean |
add(java.lang.String element) |
java.util.List<java.lang.Long> |
asLongs()
returns all values as a List of Long.
|
java.util.List<java.lang.String> |
asStrings()
returns all values as a List of Strings.
|
java.lang.Boolean |
getBooleanValue(int index) |
java.util.Date |
getDateTimeValue(int index) |
java.util.Date |
getDateValue(int index) |
java.lang.Double |
getDoubleValue(int index) |
java.lang.Long |
getLongValue(int index) |
AnyMap |
getMap(int index) |
AnySeq |
getSeq(int index) |
java.lang.String |
getStringValue(int index) |
Value |
getValue(int index) |
boolean add(java.lang.String element)
element - The string object to addboolean add(java.lang.Number number)
number - The number object to addvoid add(int index,
Any element)
add in interface java.util.List<Any>index - The index where to add the any objectelement - The any object to addAnyMap getMap(int index)
index - The index of the object to returnAnySeq getSeq(int index)
index - The index of the object to returnValue getValue(int index)
index - The index of the object to returnjava.lang.String getStringValue(int index)
index - The index of the object to returnjava.lang.Double getDoubleValue(int index)
index - The index of the object to returnjava.lang.Long getLongValue(int index)
index - The index of the object to returnjava.lang.Boolean getBooleanValue(int index)
index - The index of the object to returnjava.util.Date getDateValue(int index)
index - The index of the object to returnjava.util.Date getDateTimeValue(int index)
index - The index of the object to returnjava.util.List<java.lang.String> asStrings()
InvalidValueTypeException - if not all contained values are strings.java.util.List<java.lang.Long> asLongs()
InvalidValueTypeException - if not all contained values are Longs.