org.sdnplatform.sync.internal
Class Cursor

java.lang.Object
  extended by org.sdnplatform.sync.internal.Cursor
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>>, IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>>

public class Cursor
extends java.lang.Object
implements IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>>


Constructor Summary
Cursor(int cursorId, IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> delegate)
           
 
Method Summary
 void close()
          Close the iterator
 int getCursorId()
           
 boolean hasNext()
           
 java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cursor

public Cursor(int cursorId,
              IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>> delegate)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>>

next

public java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>> next()
Specified by:
next in interface java.util.Iterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>>

close

public void close()
Description copied from interface: IClosableIterator
Close the iterator

Specified by:
close in interface java.io.Closeable
Specified by:
close in interface IClosableIterator<java.util.Map.Entry<ByteArray,java.util.List<Versioned<byte[]>>>>

getCursorId

public int getCursorId()