Class DeciderFilter<T>

  • All Implemented Interfaces:
    FilterIF<T>

    public class DeciderFilter<T>
    extends Object
    implements FilterIF<T>
    INTERNAL: Filter that filters a collection using a decider. The decider is applied to the individual objects in the collection. If the object is accepted by the decider it will become part of the result.

    • Constructor Detail

      • DeciderFilter

        public DeciderFilter​(Predicate<T> decider)
    • Method Detail

      • filter

        public Collection<T> filter​(Iterator<T> objects)
        Description copied from interface: FilterIF
        INTERNAL: Filters the input iterator and returns a collection containing a subset of the iterator's elements.
        Specified by:
        filter in interface FilterIF<T>