|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.impl.AbstractAny
org.eclipse.smila.datamodel.impl.AnySeqImpl
public final class AnySeqImpl
Sequence of Any objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.smila.datamodel.Any |
|---|
Any.ValueType |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.smila.datamodel.impl.AbstractAny |
|---|
_valueType |
| Method Summary | ||
|---|---|---|
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()
|
|
|
toArray(T[] a)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class org.eclipse.smila.datamodel.impl.AbstractAny |
|---|
asMap, asValue, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.smila.datamodel.Any |
|---|
asMap, asValue, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValue |
| Method Detail |
|---|
public boolean add(Any value)
add in interface java.util.Collection<Any>add in interface java.util.List<Any>public boolean add(java.lang.String e)
add in interface AnySeqe - The string object to add
public boolean add(java.lang.Number n)
add in interface AnySeqn - The number object to add
public void add(int index,
Any element)
add in interface java.util.List<Any>add in interface AnySeqindex - The index where to add the any objectelement - The any object to addpublic boolean addAll(java.util.Collection<? extends Any> c)
addAll in interface java.util.Collection<Any>addAll in interface java.util.List<Any>
public boolean addAll(int index,
java.util.Collection<? extends Any> c)
addAll in interface java.util.List<Any>public void clear()
clear in interface java.util.Collection<Any>clear in interface java.util.List<Any>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<Any>contains in interface java.util.List<Any>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<Any>containsAll in interface java.util.List<Any>public Any get(int index)
get in interface java.util.List<Any>
public Any set(int index,
Any element)
set in interface java.util.List<Any>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<Any>public boolean isEmpty()
isEmpty in interface java.util.Collection<Any>isEmpty in interface java.util.List<Any>isEmpty in interface AnyValue: returns always false.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 AnyValue, 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 Any remove(int index)
remove in interface java.util.List<Any>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<Any>remove in interface java.util.List<Any>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<Any>removeAll in interface java.util.List<Any>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<Any>retainAll in interface java.util.List<Any>public int size()
size in interface java.util.Collection<Any>size in interface java.util.List<Any>size in interface AnyValue this is always 1.
public java.util.List<Any> subList(int fromIndex,
int toIndex)
subList in interface java.util.List<Any>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<Any>toArray in interface java.util.List<Any>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<Any>toArray in interface java.util.List<Any>public AnyMap getMap(int index)
getMap in interface AnySeqindex - The index of the object to return
public AnySeq getSeq(int index)
getSeq in interface AnySeqindex - The index of the object to return
public Value getValue(int index)
getValue in interface AnySeqindex - The index of the object to return
public java.lang.String getStringValue(int index)
getStringValue in interface AnySeqindex - The index of the object to return
public java.lang.Double getDoubleValue(int index)
getDoubleValue in interface AnySeqindex - The index of the object to return
public java.lang.Long getLongValue(int index)
getLongValue in interface AnySeqindex - The index of the object to return
public java.lang.Boolean getBooleanValue(int index)
getBooleanValue in interface AnySeqindex - The index of the object to return
public java.util.Date getDateValue(int index)
getDateValue in interface AnySeqindex - The index of the object to return
public java.util.Date getDateTimeValue(int index)
getDateTimeValue in interface AnySeqindex - The index of the object to return
public int hashCode()
hashCode in interface java.util.Collection<Any>hashCode in interface java.util.List<Any>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<Any>equals in interface java.util.List<Any>equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic AnySeq asSeq()
AnySeq object or throws an InvalidValueTypeException.
asSeq in interface AnyasSeq in class AbstractAnyAny.asSeq()public java.util.List<java.lang.String> asStrings()
asStrings in interface AnySeqAnySeq.asStrings()public java.util.List<java.lang.Long> asLongs()
asLongs in interface AnySeqAnySeq.asLongs()
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||