Package hudson.util

Class Iterators.DuplicateFilterIterator<T>

java.lang.Object
hudson.util.Iterators.FilterIterator<T>
hudson.util.Iterators.DuplicateFilterIterator<T>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
Iterators

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

    • DuplicateFilterIterator

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

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

    • 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>
      Returns:
      true to leave this item and return this item from this iterator. false to hide this item.