Class ConvertingIteration<S,​T>

    • Constructor Detail

      • ConvertingIteration

        protected ConvertingIteration​(CloseableIteration<? extends S> iter)
        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)
        Converts a source type object to a target type object.
      • hasNext

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