Class AbstractUntypedIteratorDecorator<I,​O>

  • All Implemented Interfaces:
    java.util.Iterator<O>
    Direct Known Subclasses:
    AbstractIteratorDecorator

    public abstract class AbstractUntypedIteratorDecorator<I,​O>
    extends java.lang.Object
    implements java.util.Iterator<O>
    Provides basic behaviour for decorating an iterator with extra functionality without committing the generic type of the Iterator implementation.

    All methods are forwarded to the decorated iterator.

    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      void remove()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, next
    • Method Detail

      • hasNext

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

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