Class TranslatingIterator<E,​T>

  • All Implemented Interfaces:
    Iterable<T>, Iterator<T>

    public abstract class TranslatingIterator<E,​T>
    extends Object
    implements Iterable<T>, Iterator<T>
    FIXME Iterable which produces incorrect result for any but first #iterator() Evgeny Gryaznov, 9/13/11
    • Constructor Detail

      • TranslatingIterator

        public TranslatingIterator​(Iterator<E> inner)
    • Method Detail

      • nextElement

        protected T nextElement()
      • hasNext

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

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

        public void remove()
        Specified by:
        remove in interface Iterator<E>
      • translate

        protected abstract T translate​(E node)