Class Iterators.Filter<T>

  • All Implemented Interfaces:
    Enclosing class:

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

      Modifier Constructor Description
      protected Filter​(java.util.Iterator<? extends T> core)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      protected abstract boolean matches​(T value)
      Return true to retain the value.
      T next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

    • Constructor Detail

      • Filter

        protected Filter​(java.util.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 java.util.Iterator<T>