blob: e490c231236fa3030c0fbf86d35607cac2f3f7ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.history;
import java.util.NoSuchElementException;
import net.java.sip.communicator.service.history.records.HistoryRecord;
/**
*
* @author Alexander Pelov
*/
public interface QueryResultSet extends BidirectionalIterator {
/**
* A strongly-typed variant of <tt>next()</tt>.
*
* @return the next history record.
*
* @throws NoSuchElementException iteration has no more elements.
*/
HistoryRecord nextRecord() throws NoSuchElementException;
/**
* A strongly-typed variant of <tt>prev()</tt>.
*
* @return the previous history record.
*
* @throws NoSuchElementException iteration has no more elements.
*/
HistoryRecord prevRecord() throws NoSuchElementException;
}
|