org.tigris.scarab.util
Class WindowIterator
java.lang.Object
org.tigris.scarab.util.WindowIterator
- All Implemented Interfaces:
- java.util.Iterator
- Direct Known Subclasses:
- EmptyWindowIterator
- public class WindowIterator
- extends java.lang.Object
- implements java.util.Iterator
|
Constructor Summary |
WindowIterator(java.util.Iterator i,
int backSize,
int forwardSize)
|
|
Method Summary |
java.lang.Object |
get(int i)
Allows retrieving a given element some distance relative to the element
last returned from next(). |
boolean |
hasNext()
|
boolean |
hasValue(int i)
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final WindowIterator EMPTY
firstCall
boolean firstCall
WindowIterator
public WindowIterator(java.util.Iterator i,
int backSize,
int forwardSize)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator
get
public java.lang.Object get(int i)
- Allows retrieving a given element some distance relative to the element
last returned from next().
hasValue
public boolean hasValue(int i)
Copyright © 2000-2004 Tigris.org. All Rights Reserved.