Class BranchedUniqueNamedApplicationObjectMasterIterator

  • All Implemented Interfaces:
    Iterator<com.redwood.scheduler.api.model.BranchedUniqueNamedApplicationObject>

    public class BranchedUniqueNamedApplicationObjectMasterIterator
    extends com.redwood.scheduler.infrastructure.collections.IteratorFilter<com.redwood.scheduler.api.model.BranchedUniqueNamedApplicationObject>
    Small helper class for filtering an iterator over branchable objects so that only the master objects are returned.
    • Constructor Detail

      • BranchedUniqueNamedApplicationObjectMasterIterator

        public BranchedUniqueNamedApplicationObjectMasterIterator​(Iterator<? extends com.redwood.scheduler.api.model.BranchedUniqueNamedApplicationObject> initIterator)
    • Method Detail

      • isAllowed

        protected boolean isAllowed​(com.redwood.scheduler.api.model.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 class com.redwood.scheduler.infrastructure.collections.IteratorFilter<com.redwood.scheduler.api.model.BranchedUniqueNamedApplicationObject>
        Parameters:
        bunao - Object to test.
        Returns:
        True if the object should appear in the iterator, false otherwise.