Package com.redwood.scheduler.api.model
Class BranchedUniqueNamedApplicationObjectMasterIterator
- java.lang.Object
-
- com.redwood.scheduler.infrastructure.collections.IteratorFilter<BranchedUniqueNamedApplicationObject>
-
- com.redwood.scheduler.api.model.BranchedUniqueNamedApplicationObjectMasterIterator
-
- All Implemented Interfaces:
Iterator<BranchedUniqueNamedApplicationObject>
public class BranchedUniqueNamedApplicationObjectMasterIterator extends com.redwood.scheduler.infrastructure.collections.IteratorFilter<BranchedUniqueNamedApplicationObject>
Small helper class for filtering an iterator over branchable objects so that only the master objects are returned.
-
-
Constructor Summary
Constructors Constructor Description BranchedUniqueNamedApplicationObjectMasterIterator(Iterator<? extends BranchedUniqueNamedApplicationObject> initIterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isAllowed(BranchedUniqueNamedApplicationObject bunao)
Predicate for testing if an object should be returned by the iterator.-
Methods inherited from class com.redwood.scheduler.infrastructure.collections.IteratorFilter
hasNext, next, 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 Detail
-
BranchedUniqueNamedApplicationObjectMasterIterator
public BranchedUniqueNamedApplicationObjectMasterIterator(Iterator<? extends BranchedUniqueNamedApplicationObject> initIterator)
-
-
Method Detail
-
isAllowed
protected boolean isAllowed(BranchedUniqueNamedApplicationObject bunao)
Description copied from class:com.redwood.scheduler.infrastructure.collections.IteratorFilter
Predicate for testing if an object should be returned by the iterator. If not allowed, the iterator behaves as if the object is not in the sequence of objects that are being iterated over.- Specified by:
isAllowed
in classcom.redwood.scheduler.infrastructure.collections.IteratorFilter<BranchedUniqueNamedApplicationObject>
- Parameters:
bunao
- Object to test.- Returns:
- True if the object should appear in the iterator, false otherwise.
-
-