Class Iterators.Filter<T>

  • All Implemented Interfaces:
    Iterator<T>
    Enclosing class:
    Iterators

    public abstract static class Iterators.Filter<T>
    extends Object
    Filter out objects from another iterator.
    • Constructor Detail

      • Filter

        protected Filter​(Iterator<? extends T> core)
    • Method Detail

      • matches

        protected abstract boolean matches​(T value)
        Return true to retain the value.
      • hasNext

        public boolean hasNext()
      • next

        public T next()
      • remove

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