Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.SelectIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.FilterIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.SelectIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.SelectIterator extends LazyCollection.FilterIterator
LazyCollection.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
Constructors Constructor Description SelectIterator(CodeBlock condition, StackFrame parentFrame)
Creates aLazyCollection.SelectIterator
withcondition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
include(E element)
Checks whether to include-
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
-
-
-
-
Constructor Detail
-
SelectIterator
public SelectIterator(CodeBlock condition, StackFrame parentFrame)
Creates aLazyCollection.SelectIterator
withcondition
.- Parameters:
condition
- the condition functionparentFrame
- the parent stack frame context
-
-
Method Detail
-
include
protected final boolean include(E element)
Checks whether to includeelement
.- Specified by:
include
in classLazyCollection.FilterIterator
- Parameters:
element
- the element to filter- Returns:
true
iffelement
should be included in this collection
-
-