Any.ValueType| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Any element) |
boolean |
add(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(String element) |
List<Long> |
asLongs()
returns all values as a List of Long.
|
List<String> |
asStrings()
returns all values as a List of Strings.
|
Boolean |
getBooleanValue(int index) |
Date |
getDateTimeValue(int index) |
Date |
getDateValue(int index) |
Double |
getDoubleValue(int index) |
Long |
getLongValue(int index) |
AnyMap |
getMap(int index) |
AnySeq |
getSeq(int index) |
String |
getStringValue(int index) |
Value |
getValue(int index) |
add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamboolean add(String element)
element - The string object to addboolean add(Number number)
number - The number object to addvoid add(int index,
Any element)
AnyMap 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 returnString getStringValue(int index)
index - The index of the object to returnDouble getDoubleValue(int index)
index - The index of the object to returnLong getLongValue(int index)
index - The index of the object to returnBoolean getBooleanValue(int index)
index - The index of the object to returnDate getDateValue(int index)
index - The index of the object to returnDate getDateTimeValue(int index)
index - The index of the object to returnList<String> asStrings()
InvalidValueTypeException - if not all contained values are strings.List<Long> asLongs()
InvalidValueTypeException - if not all contained values are Longs.Copyright © 2017. All rights reserved.