Package hudson.util

Class Iterators.DuplicateFilterIterator<T>

  • All Implemented Interfaces:
    Enclosing class:

    public static final class Iterators.DuplicateFilterIterator<T>
    extends Iterators.FilterIterator<T>
    Remove duplicates from another iterator.
    • Constructor Detail

      • DuplicateFilterIterator

        public DuplicateFilterIterator​(Iterator<? extends T> core)
      • DuplicateFilterIterator

        public DuplicateFilterIterator​(Iterable<? extends T> core)
    • Method Detail

      • filter

        protected boolean filter​(T t)
        Description copied from class: Iterators.FilterIterator
        Filter out items in the original collection.
        Specified by:
        filter in class Iterators.FilterIterator<T>
        true to leave this item and return this item from this iterator. false to hide this item.