Class WrapperCollections.AbstractWrapperIterator<E>

    • Constructor Detail

      • AbstractWrapperIterator

        protected AbstractWrapperIterator​(Iterator<E> iter)
        Create an AbstractWrapperIterator which delegates to the specified Iterator.
        Parameters:
        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.
        Returns:
        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()
        Overrides:
        hashCode in class Object