org.tigris.scarab.util
Class WindowIterator

java.lang.Object
  extended byorg.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


Field Summary
static WindowIterator EMPTY
           
(package private)  boolean firstCall
           
 
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
 

Field Detail

EMPTY

public static final WindowIterator EMPTY

firstCall

boolean firstCall
Constructor Detail

WindowIterator

public WindowIterator(java.util.Iterator i,
                      int backSize,
                      int forwardSize)
Method Detail

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.