Class ConvertingIteration<S,​T,​X extends java.lang.Exception>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Iteration<? extends S,​? extends X> iter
      Deprecated.
      The source type iteration.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ConvertingIteration​(Iteration<? extends S,​? extends X> iter)
      Deprecated.
      Creates a new ConvertingIteration that operates on the supplied source type iteration.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected abstract T convert​(S sourceObject)
      Deprecated.
      Converts a source type object to a target type object.
      protected void handleClose()
      Deprecated.
      Closes this iteration as well as the wrapped iteration if it is a CloseableIteration.
      boolean hasNext()
      Deprecated.
      Checks whether the source type iteration contains more elements.
      T next()
      Deprecated.
      Returns the next element from the source type iteration.
      void remove()
      Deprecated.
      Calls remove() on the underlying Iteration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • iter

        private final Iteration<? extends S,​? extends X extends java.lang.Exception> iter
        Deprecated.
        The source type iteration.
    • Constructor Detail

      • ConvertingIteration

        protected ConvertingIteration​(Iteration<? extends S,​? extends X> 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)
                              throws X extends java.lang.Exception
        Deprecated.
        Converts a source type object to a target type object.
        Throws:
        X extends java.lang.Exception
      • hasNext

        public boolean hasNext()
                        throws X extends java.lang.Exception
        Deprecated.
        Checks whether the source type iteration contains more elements.
        Returns:
        true if the source type iteration contains more elements, false otherwise.
        Throws:
        X
        X
        X extends java.lang.Exception
      • next

        public T next()
               throws X extends java.lang.Exception
        Deprecated.
        Returns the next element from the source type iteration.
        Returns:
        the next element in the iteration.
        Throws:
        X
        java.util.NoSuchElementException - If all elements have been returned.
        java.lang.IllegalStateException - If the iteration has been closed.
        X extends java.lang.Exception
      • remove

        public void remove()
                    throws X extends java.lang.Exception
        Deprecated.
        Calls remove() on the underlying Iteration.
        Throws:
        java.lang.UnsupportedOperationException - If the wrapped Iteration does not support the remove operation.
        java.lang.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().
        X extends java.lang.Exception
      • handleClose

        protected void handleClose()
                            throws X extends java.lang.Exception
        Deprecated.
        Closes this iteration as well as the wrapped iteration if it is a CloseableIteration.
        Overrides:
        handleClose in class AbstractCloseableIteration<T,​X extends java.lang.Exception>
        Throws:
        X
        X extends java.lang.Exception