E - Each result set should be a collection of instances of the exact
same class. This class must implement the Result
interface.ResultSetImpl@Deprecated public class ResultSetImpl<E extends Result> extends ResultSet<E>
List.subList(int, int) method,
non-structural changes in the returned lists are reflected in the ResultSet,
and vice-versa.List.subList(int, int)| Modifier and Type | Field and Description |
|---|---|
List<E> |
resultList
Deprecated.
A list of all results in this ResultSet
|
Map<String,Integer> |
uidToIndex
Deprecated.
A mapping of the UIDs of all results in resultList, to the index of those
entries in that list.
|
NAMESPACE_RESULT_SET_MANAGEMENT| Constructor and Description |
|---|
ResultSetImpl(Collection<E> results)
Deprecated.
Creates a new Result Set instance, based on a collection of Result
implementing objects.
|
ResultSetImpl(Collection<E> results,
Comparator<E> comparator)
Deprecated.
Creates a new Result Set instance, based on a collection of Result
implementing objects.
|
| Modifier and Type | Method and Description |
|---|---|
E |
get(int index)
Deprecated.
Returns the element denoted by the index.
|
List<E> |
get(int fromIndex,
int maxAmount)
Deprecated.
Returns a list of results, starting with the result that's at the
specified index.
|
List<E> |
getAfter(String uid,
int maxAmount)
Deprecated.
Returns a List of results starting with the first result after the result
that's identified by the provided UID (the returned List is exclusive).
|
List<E> |
getBefore(String uid,
int maxAmount)
Deprecated.
Returns a list of results ending with the element right before the
element identified by the provided UID (the returned List is exclusive).
|
List<E> |
getFirst(int maxAmount)
Deprecated.
Returns the first elements from this result set.
|
List<E> |
getLast(int maxAmount)
Deprecated.
Returns the last elements from this result set.
|
int |
indexOf(String uid)
Deprecated.
Returns the index in the full resultset of the element identified by the
UID in te supplied argument.
|
int |
size()
Deprecated.
|
applyRSMDirectives, generateSetElementFromResults, getAfter, getBefore, getUID, indexOf, isValidRSMRequest, iteratoradd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic final List<E extends Result> resultList
public ResultSetImpl(Collection<E> results)
Collection.iterator() iterates over the
collection.
Note that this constructor throws an IllegalArgumentException if the
Collection that is provided contains Results that have duplicate UIDs.results - The collection of Results that make up this result set.public ResultSetImpl(Collection<E> results, Comparator<E> comparator)
results - The collection of Results that make up this result set.comparator - The Comparator that defines the order of the Results in this
result set.public int size()
size in interface Collection<E extends Result>size in class AbstractCollection<E extends Result>public List<E> getAfter(String uid, int maxAmount)
ResultSetgetAfter in class ResultSet<E extends Result>uid - The UID of the element that is right before the first element
in the result.maxAmount - The maximum number of elements to return.public List<E> getBefore(String uid, int maxAmount)
ResultSetgetBefore in class ResultSet<E extends Result>uid - The UID of the element preceding the last element returned by
this function.maxAmount - The length of the List that is being returned.public E get(int index)
ResultSetpublic List<E> getFirst(int maxAmount)
ResultSetpublic List<E> getLast(int maxAmount)
ResultSetpublic List<E> get(int fromIndex, int maxAmount)
ResultSetget in class ResultSet<E extends Result>fromIndex - The index of the first element to be returned.maxAmount - The maximum number of elements to return.Copyright © 2003-2008 Jive Software.