Class FilterIteration<E>

    • Constructor Detail

      • FilterIteration

        protected FilterIteration​(CloseableIteration<? extends E> iter)
        Parameters:
        iter -
    • Method Detail

      • hasNext

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

        public E next()
        Specified by:
        next in interface Iterator<E>
      • accept

        protected abstract boolean accept​(E object)
        Tests whether or not the specified object should be returned by this Iteration. All objects from the wrapped Iteration pass through this method in the same order as they are coming from the wrapped Iteration.
        Parameters:
        object - The object to be tested.
        Returns:
        true if the object should be returned, false otherwise.
      • handleClose

        protected abstract void handleClose()
        Closes this Iteration and also closes the wrapped Iteration if it is a CloseableIteration.