T
- element type of querypublic class OrderedQueryResultSet<T> extends java.lang.Object implements QueryResultSet<T>
Constructor and Description |
---|
OrderedQueryResultSet(java.util.Set<T> records)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
boolean |
hasPrev()
Returns true if the iteration has elements preceeding the current one.
|
T |
next()
Returns the next element in the iteration.
|
T |
nextRecord()
A strongly-typed variant of next().
|
T |
prev()
Returns the previous element in the iteration.
|
T |
prevRecord()
A strongly-typed variant of prev().
|
void |
remove()
Removes from the underlying collection the last element returned by
the iterator (optional operation).
|
public OrderedQueryResultSet(java.util.Set<T> records)
records
- the Set of recordspublic boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public boolean hasPrev()
hasPrev
in interface BidirectionalIterator<T>
public T next()
next
in interface java.util.Iterator<T>
public T nextRecord() throws java.util.NoSuchElementException
nextRecord
in interface QueryResultSet<T>
java.util.NoSuchElementException
- iteration has no more elements.public T prev() throws java.util.NoSuchElementException
prev
in interface BidirectionalIterator<T>
java.util.NoSuchElementException
- iteration has no more elements.public T prevRecord() throws java.util.NoSuchElementException
prevRecord
in interface QueryResultSet<T>
java.util.NoSuchElementException
- iteration has no more elements.public void remove()
remove
in interface java.util.Iterator<T>
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.