Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.CachingIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Direct Known Subclasses:
EnumConversionList.EnumConversionIterator,EnumConversionSetOnSet.EnumConversionIterator,LazyBag.BagIntersectionIterator,LazyCollection.CachingSetIterator,LazyCollection.ExcludingIterator,LazyCollection.FilterIterator,LazyCollection.IntersectionIterator,LazyCollection.IteratorToListIterator,LazyCollection.SubtractionIterator,ModelImpl.InstanceOfList.InstanceOfIterator,OCLOperations.ResolveList.ResolveIterator
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.CachingIterator extends LazyCollection.ReadOnlyIterator<E>
LazyCollection.ReadOnlyIteratorthat caches values of the underlying collection.
-
-
Constructor Summary
Constructors Constructor Description CachingIterator(java.util.Iterator<E> inner)Creates a newLazyCollection.CachingIteratoraroundinner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Enext()protected voidupdateCache(E next)Updates the cache withnext.-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Field Detail
-
inner
protected final java.util.Iterator<E> inner
-
i
protected int i
-
-
Constructor Detail
-
CachingIterator
public CachingIterator(java.util.Iterator<E> inner)
Creates a newLazyCollection.CachingIteratoraroundinner.- Parameters:
inner- the underlying collection iterator
-
-