Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.SelectIterator
java.lang.Object
- All Implemented Interfaces:
Iterator<E>
- Enclosing class:
- LazyCollection<E>
LazyCollection<E>.FilterIterator
that selects elements from the underlying
collection by evaluation a condition function on them.-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.FilterIterator
condition, next, nextIncluded, nextSet, parentFrame
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
i, inner
-
Constructor Summary
ConstructorsConstructorDescriptionSelectIterator
(CodeBlock condition, StackFrame parentFrame) Creates aLazyCollection<E>.SelectIterator
withcondition
. -
Method Summary
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.FilterIterator
hasNext, next
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
updateCache
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
SelectIterator
Creates aLazyCollection<E>.SelectIterator
withcondition
.- Parameters:
condition
- the condition functionparentFrame
- the parent stack frame context
-
-
Method Details
-
include
Checks whether to includeelement
.- Specified by:
include
in classLazyCollection<E>.FilterIterator
- Parameters:
element
- the element to filter- Returns:
true
iffelement
should be included in this collection
-