Package hudson.util

Class Iterators.FilterIterator<T>

    • Constructor Detail

      • FilterIterator

        protected FilterIterator​(Iterator<? extends T> core)
      • FilterIterator

        protected FilterIterator​(Iterable<? extends T> core)
    • Method Detail

      • filter

        protected abstract boolean filter​(T t)
        Filter out items in the original collection.
        Returns:
        true to leave this item and return this item from this iterator. false to hide this item.
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<T>