Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.history
Interface QueryResultSet<T>

All Superinterfaces:
BidirectionalIterator<T>, Iterator<T>
All Known Implementing Classes:
DefaultQueryResultSet, OrderedQueryResultSet

public interface QueryResultSet<T>
extends BidirectionalIterator<T>

Author:
Alexander Pelov

Method Summary
 T nextRecord()
          A strongly-typed variant of next().
 T prevRecord()
          A strongly-typed variant of prev().
 
Methods inherited from interface net.java.sip.communicator.service.history.BidirectionalIterator
hasPrev, prev
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

nextRecord

T nextRecord()
             throws NoSuchElementException
A strongly-typed variant of next().

Returns:
the next history record.
Throws:
NoSuchElementException - iteration has no more elements.

prevRecord

T prevRecord()
             throws NoSuchElementException
A strongly-typed variant of prev().

Returns:
the previous history record.
Throws:
NoSuchElementException - iteration has no more elements.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.