org.eclipse.emf.emfstore.internal.server.model.versioning.impl.persistent
Class OperationIterator

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.model.versioning.impl.persistent.OperationIterator
All Implemented Interfaces:
Iterator<AbstractOperation>

public class OperationIterator
extends Object
implements Iterator<AbstractOperation>

A file-based iterator for AbstractOperations.

Since:
1.5
Author:
emueller

Constructor Summary
OperationIterator(String operationsFilePath, Direction direction)
          Constructor.
 
Method Summary
 void close()
          Closes the underlying operations file.
 boolean hasNext()
          
 AbstractOperation next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationIterator

public OperationIterator(String operationsFilePath,
                         Direction direction)
Constructor.

Parameters:
operationsFilePath - the absolute path to the operations file
direction - the reading Direction
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface Iterator<AbstractOperation>
See Also:
Iterator.hasNext()

next

public AbstractOperation next()

Specified by:
next in interface Iterator<AbstractOperation>
See Also:
Iterator.next()

remove

public void remove()

Specified by:
remove in interface Iterator<AbstractOperation>
See Also:
Iterator.remove()

close

public void close()
Closes the underlying operations file.



Copyright © 2016. All Rights Reserved.