Class WrapperCollections.AbstractWrapperIterator<E>

java.lang.Object
com.tangosol.util.WrapperCollections.AbstractWrapperIterator<E>
All Implemented Interfaces:
Iterator<E>
Direct Known Subclasses:
LocalCache.EntryIterator, PartitionedCache.EntryIterator, WrapperCollections.AbstractWrapperListIterator
Enclosing class:
WrapperCollections

public abstract static class WrapperCollections.AbstractWrapperIterator<E> extends Object implements Iterator<E>
Iterator implementation which delegates all calls to another Iterator.
  • Constructor Details

    • 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 Details

    • 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>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object