Class IteratorWrapper<T>

  • All Implemented Interfaces:
    Iterator<T>

    public class IteratorWrapper<T>
    extends Object
    implements Iterator<T>
    Iterator for list wrappers
    Since:
    16/01/15
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Method Detail

      • hasNext

        public boolean hasNext()

        hasNext

        Specified by:
        hasNext in interface Iterator<T>
        Returns:
        a boolean.
      • next

        public T next()

        next

        Specified by:
        next in interface Iterator<T>
        Returns:
        a T object.
      • remove

        public void remove()

        remove

        Specified by:
        remove in interface Iterator<T>
      • getOriginalIterator

        protected Iterator<T> getOriginalIterator()

        Getter for the field originalIterator.

        Returns:
        a Iterator object.
      • getCurrentObject

        protected T getCurrentObject()

        Getter for the field currentObject.

        Returns:
        a T object.