|
SMILA (incubation) 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 |
Constructor Summary | |
---|---|
AnySeqImpl()
constructs a new instance of AnySeqImpl. |
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 |
Constructor Detail |
---|
public AnySeqImpl()
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 AnySeq
e
- The string object to add
public boolean add(java.lang.Number n)
add
in interface AnySeq
n
- The number object to add
public void add(int index, Any element)
add
in interface java.util.List<Any>
add
in interface AnySeq
index
- 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 Any
Value
: 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 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 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 Any
Value
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 AnySeq
index
- The index of the object to return
public AnySeq getSeq(int index)
getSeq
in interface AnySeq
index
- The index of the object to return
public Value getValue(int index)
getValue
in interface AnySeq
index
- The index of the object to return
public java.lang.String getStringValue(int index)
getStringValue
in interface AnySeq
index
- The index of the object to return
public java.lang.Double getDoubleValue(int index)
getDoubleValue
in interface AnySeq
index
- The index of the object to return
public java.lang.Long getLongValue(int index)
getLongValue
in interface AnySeq
index
- The index of the object to return
public java.lang.Boolean getBooleanValue(int index)
getBooleanValue
in interface AnySeq
index
- The index of the object to return
public java.util.Date getDateValue(int index)
getDateValue
in interface AnySeq
index
- The index of the object to return
public java.util.Date getDateTimeValue(int index)
getDateTimeValue
in interface AnySeq
index
- 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.Object
public 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.Object
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()
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |