Class TransformingIterator<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    com.mysema.commons.lang.CloseableIterator<T>, java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<T>

    public class TransformingIterator<T>
    extends java.lang.Object
    implements com.mysema.commons.lang.CloseableIterator<T>
    TransformingIterator is a CloseableIterator adapter that transforms via a FactoryExpression instance
    Author:
    tiwe
    • Constructor Detail

      • TransformingIterator

        public TransformingIterator​(java.util.Iterator<T> iterator,
                                    FactoryExpression<?> projection)
      • TransformingIterator

        public TransformingIterator​(java.util.Iterator<T> iterator,
                                    java.io.Closeable closeable,
                                    FactoryExpression<?> projection)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface com.mysema.commons.lang.CloseableIterator<T>