Class SilentIteration<T>

All Implemented Interfaces:
AutoCloseable, Iterator<T>, CloseableIteration<T>

@Deprecated(since="4.1.0") public class SilentIteration<T> extends IterationWrapper<T>
Deprecated.
An IterationWrapper that silently ignores any errors that occur during processing.
Author:
Jeen Broekstra
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Description copied from class: IterationWrapper
      Checks whether the wrapped Iteration contains more elements, closing this Iteration when this is not the case.
      Specified by:
      hasNext in interface Iterator<T>
      Overrides:
      hasNext in class IterationWrapper<T>
      Returns:
      true if the wrapped Iteration contains more elements, false otherwise.
    • next

      public T next()
      Deprecated.
      Description copied from class: IterationWrapper
      Returns the next element from the wrapped Iteration.
      Specified by:
      next in interface Iterator<T>
      Overrides:
      next in class IterationWrapper<T>
    • handleClose

      protected void handleClose()
      Deprecated.
      Description copied from class: IterationWrapper
      Closes this Iteration and also closes the wrapped Iteration if it is a CloseableIteration.
      Overrides:
      handleClose in class IterationWrapper<T>