com.sleepycat.persist
Class BasicIterator<V>

java.lang.Object
  extended by com.sleepycat.persist.BasicIterator<V>
All Implemented Interfaces:
java.util.Iterator<V>

 class BasicIterator<V>
extends java.lang.Object
implements java.util.Iterator<V>

Implements Iterator for an arbitrary EntityCursor.

Author:
Mark Hayes

Constructor Summary
BasicIterator(EntityCursor<V> entityCursor, LockMode lockMode)
          An EntityCursor is given and the remove() method is supported.
BasicIterator(ForwardCursor<V> forwardCursor, LockMode lockMode)
          A ForwardCursor is given and the remove() method is not supported.
 
Method Summary
 boolean hasNext()
           
 V next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIterator

BasicIterator(EntityCursor<V> entityCursor,
              LockMode lockMode)
An EntityCursor is given and the remove() method is supported.


BasicIterator

BasicIterator(ForwardCursor<V> forwardCursor,
              LockMode lockMode)
A ForwardCursor is given and the remove() method is not supported.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<V>

next

public V next()
Specified by:
next in interface java.util.Iterator<V>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<V>


Copyright 2004-2006 Sleepycat, Inc. All Rights Reserved.