Class ConvertingIteration<S,​T>

    • Constructor Detail

      • ConvertingIteration

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

      • convert

        protected abstract T convert​(S sourceObject)
        Deprecated.
        Converts a source type object to a target type object.
      • hasNext

        public boolean hasNext()
        Deprecated.
        Checks whether the source type iteration contains more elements.
        Returns:
        true if the source type iteration contains more elements, false otherwise.
      • next

        public T next()
        Deprecated.
        Returns the next element from the source type iteration.
        Throws:
        NoSuchElementException - If all elements have been returned.
        IllegalStateException - If the iteration has been closed.
      • 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().