Class LazyCollection.SelectIterator
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
LazyCollection<E>.org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
LazyCollection<E>.org.eclipse.m2m.atl.emftvm.util.LazyCollection.FilterIterator
org.eclipse.m2m.atl.emftvm.util.LazyCollection.SelectIterator
- 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 LazyCollection.FilterIterator
condition, next, nextIncluded, nextSet, parentFrameFields inherited from class LazyCollection.CachingIterator
i, inner -
Constructor Summary
ConstructorsConstructorDescriptionSelectIterator(CodeBlock condition, StackFrame parentFrame) Creates aLazyCollection<E>.SelectIteratorwithcondition. -
Method Summary
Methods inherited from class LazyCollection.FilterIterator
hasNext, nextMethods inherited from class LazyCollection.CachingIterator
updateCacheMethods inherited from class LazyCollection.ReadOnlyIterator
removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
SelectIterator
Creates aLazyCollection<E>.SelectIteratorwithcondition.- Parameters:
condition- the condition functionparentFrame- the parent stack frame context
-
-
Method Details
-
include
Checks whether to includeelement
.- Specified by:
includein classLazyCollection<E>.FilterIterator- Parameters:
element- the element to filter- Returns:
trueiffelementshould be included in this collection
-