Class TransformedCloseableIterator<T,​S>

  • All Implemented Interfaces:
    com.mysema.commons.lang.CloseableIterator<T>, Closeable, AutoCloseable, Iterator<T>

    public class TransformedCloseableIterator<T,​S>
    extends Object
    implements com.mysema.commons.lang.CloseableIterator<T>
    Transforms a CloseableIterator on demand
    • Constructor Detail

      • TransformedCloseableIterator

        public TransformedCloseableIterator​(Iterator<S> iterator,
                                            Function<S,​T> transformer)
    • Method Detail

      • close

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

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

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

        public void remove()
        Specified by:
        remove in interface Iterator<T>