public final class AnySeqImpl extends AbstractAny implements AnySeq
Any.ValueType
_valueType
Modifier and Type | Method and Description |
---|---|
boolean |
add(Any value) |
void |
add(int index,
Any element) |
boolean |
add(java.lang.Number n)
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 e) |
boolean |
addAll(java.util.Collection<? extends Any> c) |
boolean |
addAll(int index,
java.util.Collection<? extends Any> c) |
java.util.List<java.lang.Long> |
asLongs()
returns all values as a List of Long.
|
AnySeq |
asSeq()
returns this Any as an
AnySeq object or throws an InvalidValueTypeException . |
java.util.List<java.lang.String> |
asStrings()
returns all values as a List of Strings.
|
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
Any |
get(int index) |
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) |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<Any> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<Any> |
listIterator() |
java.util.ListIterator<Any> |
listIterator(int index) |
Any |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
Any |
set(int index,
Any element) |
int |
size() |
java.util.List<Any> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
asMap, asValue, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asMap, asValue, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValue
public boolean add(Any value)
public boolean add(java.lang.String e)
public boolean add(java.lang.Number n)
public void add(int index, Any element)
public boolean addAll(java.util.Collection<? extends Any> c)
public boolean addAll(int index, java.util.Collection<? extends Any> c)
addAll
in interface java.util.List<Any>
public void clear()
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<Any>
public boolean isEmpty()
public java.util.Iterator<Any> iterator()
iterator
in interface java.lang.Iterable<Any>
iterator
in interface java.util.Collection<Any>
iterator
in interface java.util.List<Any>
iterator
in interface Any
Value
, this return an iterator about the value itself. For
AnyMap
it returns an iterator on the values.public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<Any>
public java.util.ListIterator<Any> listIterator()
listIterator
in interface java.util.List<Any>
public java.util.ListIterator<Any> listIterator(int index)
listIterator
in interface java.util.List<Any>
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public int size()
public java.util.List<Any> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<Any>
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public AnyMap getMap(int index)
public AnySeq getSeq(int index)
public Value getValue(int index)
public java.lang.String getStringValue(int index)
getStringValue
in interface AnySeq
index
- The index of the object to returnpublic java.lang.Double getDoubleValue(int index)
getDoubleValue
in interface AnySeq
index
- The index of the object to returnpublic java.lang.Long getLongValue(int index)
getLongValue
in interface AnySeq
index
- The index of the object to returnpublic java.lang.Boolean getBooleanValue(int index)
getBooleanValue
in interface AnySeq
index
- The index of the object to returnpublic java.util.Date getDateValue(int index)
getDateValue
in interface AnySeq
index
- The index of the object to returnpublic java.util.Date getDateTimeValue(int index)
getDateTimeValue
in interface AnySeq
index
- The index of the object to returnpublic int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object
public AnySeq asSeq()
AnySeq
object or throws an InvalidValueTypeException
.asSeq
in interface Any
asSeq
in class AbstractAny
Any.asSeq()
public java.util.List<java.lang.String> asStrings()
asStrings
in interface AnySeq
AnySeq.asStrings()
public java.util.List<java.lang.Long> asLongs()
asLongs
in interface AnySeq
AnySeq.asLongs()