Class ExceptionConvertingIteration<E,​X extends RuntimeException>

    • Constructor Detail

      • ExceptionConvertingIteration

        protected ExceptionConvertingIteration​(CloseableIteration<? extends E> iter)
        Deprecated.
        Creates a new ExceptionConvertingIteration that operates on the supplied iteration.
        Parameters:
        iter - The Iteration that this ExceptionConvertingIteration operates on, must not be null.
    • Method Detail

      • convert

        protected abstract X convert​(RuntimeException e)
        Deprecated.
        Converts an exception from the underlying iteration to an exception of type X.
      • hasNext

        public boolean hasNext()
        Deprecated.
        Checks whether the underlying Iteration contains more elements.
        Returns:
        true if the underlying Iteration contains more elements, false otherwise.
      • remove

        public void remove()
        Deprecated.
        Calls remove() on the underlying Iteration.
        Throws:
        UnsupportedOperationException - If the wrapped Iteration does not support the remove operation.
        IllegalStateException - If the Iteration has been closed, or if next() has not yet been called, or remove() has already been called after the last call to next().