|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.neodatis.odb.impl.core.query.list.objects.SimpleList<E>
public class SimpleList<E>
A simple list to hold query result. It is used when no index and no order by is used and inMemory = true
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
SimpleList()
|
|
SimpleList(int initialCapacity)
|
Method Summary | |
---|---|
boolean |
addWithKey(int key,
E o)
Add an object into the collection using a specific ordering key |
boolean |
addWithKey(OdbComparable key,
E o)
Add an object into the collection using a specific ordering key |
E |
getFirst()
Return the first object of the collection, if exist |
boolean |
hasNext()
Inform if the internal Iterator has more objects |
java.util.Iterator<E> |
iterator(OrderByConstants orderByType)
The orderByType in not supported by this kind of list |
E |
next()
Returns the next object of the internal iterator of the collection |
boolean |
removeByKey(OdbComparable key,
java.lang.Object value)
Removes an object by its key |
void |
reset()
Reset the internal iterator of the collection |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public SimpleList()
public SimpleList(int initialCapacity)
Method Detail |
---|
public boolean addWithKey(OdbComparable key, E o)
Objects
addWithKey
in interface Objects<E>
public boolean addWithKey(int key, E o)
Objects
addWithKey
in interface Objects<E>
public E getFirst()
Objects
getFirst
in interface Objects<E>
public boolean hasNext()
Objects
hasNext
in interface Objects<E>
public java.util.Iterator<E> iterator(OrderByConstants orderByType)
iterator
in interface Objects<E>
public E next()
Objects
next
in interface Objects<E>
public void reset()
Objects
reset
in interface Objects<E>
public boolean removeByKey(OdbComparable key, java.lang.Object value)
Objects
removeByKey
in interface Objects<E>
value
- The object to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |