Class WrapperCollections.AbstractWrapperIterator<E>

    • Constructor Detail

      • AbstractWrapperIterator

        protected AbstractWrapperIterator​(Iterator<E> iter)
        Create an AbstractWrapperIterator which delegates to the specified Iterator.
        iter - the Iterator to delegate all calls to
    • Method Detail

      • getDelegate

        protected Iterator<E> getDelegate()
        Return the Iterator to which all operations should be delegated to.
        the wrapped Iterator
      • hasNext

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

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

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

        public int hashCode()
        hashCode in class Object