public class ObjectSetFacade extends java.util.AbstractList implements ExtObjectSet
| Modifier and Type | Field and Description |
|---|---|
StatefulQueryResult |
_delegate |
| Constructor and Description |
|---|
ObjectSetFacade(QueryResult queryResult) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object obj) |
ExtObjectSet |
ext()
returns an ObjectSet with extended functionality.
|
java.lang.Object |
get(int index)
returns the item at position [index] in this ObjectSet.
|
long[] |
getIDs()
returns an array of internal IDs that correspond to the contained objects.
|
boolean |
hasNext()
returns
true if the ObjectSet has more elements. |
int |
indexOf(java.lang.Object obj) |
java.util.Iterator |
iterator() |
int |
lastIndexOf(java.lang.Object obj) |
java.lang.Object |
next()
returns the next object in the
ObjectSet. |
void |
remove() |
void |
reset()
resets the
ObjectSet cursor before the first element. |
int |
size()
returns the number of elements in the
ObjectSet. |
void |
sort(QueryComparator cmp) |
add, add, addAll, clear, equals, hashCode, listIterator, listIterator, remove, removeRange, set, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic final StatefulQueryResult _delegate
public ObjectSetFacade(QueryResult queryResult)
public void sort(QueryComparator cmp)
public java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class java.util.AbstractListpublic long[] getIDs()
ExtObjectSetgetIDs in interface ExtObjectSetExtObjectContainer.getID(java.lang.Object),
ExtObjectContainer.getByID(long)public ExtObjectSet ext()
ObjectSetpublic boolean hasNext()
ObjectSettrue if the ObjectSet has more elements.public java.lang.Object next()
ObjectSetObjectSet.
global or
class specific
setting.public void reset()
ObjectSetObjectSet cursor before the first element.
next() will return the first element.public int size()
ObjectSetObjectSet.public boolean contains(java.lang.Object obj)
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class java.util.AbstractCollectionpublic java.lang.Object get(int index)
ExtObjectSetget in interface ExtObjectSetget in interface java.util.Listget in class java.util.AbstractListindex - the index position in this ObjectSet.public int indexOf(java.lang.Object obj)
indexOf in interface java.util.ListindexOf in class java.util.AbstractListpublic int lastIndexOf(java.lang.Object obj)
lastIndexOf in interface java.util.ListlastIndexOf in class java.util.AbstractListpublic void remove()