org.eclipse.emf.emfstore.server.model
Class InMemoryOperationIterable

java.lang.Object
  extended by org.eclipse.emf.emfstore.server.model.InMemoryOperationIterable
All Implemented Interfaces:
ESCloseableIterable<ESOperation>

public class InMemoryOperationIterable
extends Object
implements ESCloseableIterable<ESOperation>

In-memory representation of an ESCloseableIterable for operations. Calling close has no effect.

Since:
1.5
Author:
emueller

Constructor Summary
InMemoryOperationIterable(List<ESOperation> operations)
          Defaults constructor.
 
Method Summary
 void close()
          Closes this Iterable.
 Iterable<ESOperation> iterable()
          Returns an Iterable that can be iterated over.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryOperationIterable

public InMemoryOperationIterable(List<ESOperation> operations)
Defaults constructor.

Parameters:
operations - the in-memory representation of the operations
Method Detail

iterable

public Iterable<ESOperation> iterable()
Returns an Iterable that can be iterated over.

Specified by:
iterable in interface ESCloseableIterable<ESOperation>
Returns:
an Iterable to iterate over
See Also:
ESCloseableIterable.iterable()

close

public void close()
Closes this Iterable.

Specified by:
close in interface ESCloseableIterable<ESOperation>
See Also:
ESCloseableIterable.close()


Copyright © 2016. All Rights Reserved.