diff options
author | Alexander Pelov <a_pelov@java.net> | 2005-12-01 12:26:39 +0000 |
---|---|---|
committer | Alexander Pelov <a_pelov@java.net> | 2005-12-01 12:26:39 +0000 |
commit | 7b861b5cf5c7f3fc738e8b45b1d75362330235fd (patch) | |
tree | 55052669f9d5aa75bc92c740cc4e688694210adb /src/net/java/sip/communicator/service/history | |
parent | 08618c6ab74990e32afd361e3e6f89eff25b67da (diff) | |
download | jitsi-7b861b5cf5c7f3fc738e8b45b1d75362330235fd.zip jitsi-7b861b5cf5c7f3fc738e8b45b1d75362330235fd.tar.gz jitsi-7b861b5cf5c7f3fc738e8b45b1d75362330235fd.tar.bz2 |
ResourcesService renamed to FileAccessService.
Diffstat (limited to 'src/net/java/sip/communicator/service/history')
-rw-r--r-- | src/net/java/sip/communicator/service/history/BidirectionalIterator.java | 38 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/history/QueryResultSet.java | 1 |
2 files changed, 38 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/service/history/BidirectionalIterator.java b/src/net/java/sip/communicator/service/history/BidirectionalIterator.java new file mode 100644 index 0000000..5d7cf76 --- /dev/null +++ b/src/net/java/sip/communicator/service/history/BidirectionalIterator.java @@ -0,0 +1,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.Iterator; +import java.util.NoSuchElementException; + +/** + * The standard Java Iterator is uni-directional, allowing the user to explore + * the contents of a collection in one way only. This interface defines a + * bi-directional iterator, permiting the user to go forwards and backwards in + * a collection. + * + * @author Alexander Pelov + */ +public interface BidirectionalIterator extends Iterator { + /** + * Returns true if the iteration has elements preceeding the current one. + * (In other words, returns true if <code>prev</code> would return an element rather + * than throwing an exception.) + * + * @return true if the iterator has preceeding elements. + */ + boolean hasPrev(); + + /** + * Returns the previous element in the iteration. + * + * @return the previous element in the iteration. + * + * @throws NoSuchElementException iteration has no more elements. + */ + Object prev() throws NoSuchElementException; +} diff --git a/src/net/java/sip/communicator/service/history/QueryResultSet.java b/src/net/java/sip/communicator/service/history/QueryResultSet.java index 968c0c6..ccf6f59 100644 --- a/src/net/java/sip/communicator/service/history/QueryResultSet.java +++ b/src/net/java/sip/communicator/service/history/QueryResultSet.java @@ -9,7 +9,6 @@ package net.java.sip.communicator.service.history; import java.util.NoSuchElementException; import net.java.sip.communicator.service.history.records.HistoryRecord; -import net.java.sip.communicator.util.BidirectionalIterator; /** |