public class DefaultQueryResultSet<T> extends java.lang.Object implements QueryResultSet<T>
Constructor and Description |
---|
DefaultQueryResultSet(java.util.Vector<T> records) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
boolean |
hasPrev()
Returns true if the iteration has elements preceeding the current one.
|
T |
next() |
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() |
public DefaultQueryResultSet(java.util.Vector<T> records)
public T nextRecord() throws java.util.NoSuchElementException
QueryResultSet
nextRecord
in interface QueryResultSet<T>
java.util.NoSuchElementException
- iteration has no more elements.public T prevRecord() throws java.util.NoSuchElementException
QueryResultSet
prevRecord
in interface QueryResultSet<T>
java.util.NoSuchElementException
- iteration has no more elements.public boolean hasPrev()
BidirectionalIterator
hasPrev
in interface BidirectionalIterator<T>
public T prev() throws java.util.NoSuchElementException
BidirectionalIterator
prev
in interface BidirectionalIterator<T>
java.util.NoSuchElementException
- iteration has no more elements.public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<T>
java.lang.UnsupportedOperationException
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.