Class FilterIterator<T>

    • Field Detail

      • proxy

        protected Iterator<T> proxy
        Deprecated.
    • Constructor Detail

      • FilterIterator

        public FilterIterator​(Iterator<T> proxy)
        Deprecated.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Deprecated.
        Specified by:
        hasNext in interface Iterator<T>
      • remove

        public void remove()
        Deprecated.
        Always throws UnsupportedOperationException as this class does look-ahead with its internal iterator.
        Specified by:
        remove in interface Iterator<T>
        Throws:
        UnsupportedOperationException - always
      • matches

        protected abstract boolean matches​(T element)
        Deprecated.
        Filter method to perform some matching on the given element.
        Parameters:
        element - DOCUMENT ME!
        Returns:
        true if the given element matches the filter and should be appear in the iteration
      • findNext

        protected T findNext()
        Deprecated.