Class MappingReIterator<T,Z>

java.lang.Object
org.evrete.util.MappingReIterator<T,Z>
All Implemented Interfaces:
Iterator<Z>, ReIterator<Z>

public class MappingReIterator<T,Z> extends Object implements ReIterator<Z>
The MappingReIterator class implements the ReIterator interface and provides a mapping functionality to another ReIterator.
  • Constructor Details

  • Method Details

    • reset

      public long reset()
      Description copied from interface: ReIterator

      Resets the iterator to its initial position.

      Additionally, this method returns the size of the underlying data collection.

      Specified by:
      reset in interface ReIterator<T>
      Returns:
      The size of the underlying data collection.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • remove

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

      public Z next()
      Specified by:
      next in interface Iterator<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object