Class AbstractIterator<T>

java.lang.Object
org.spongepowered.collections.AbstractIterator<T>
All Implemented Interfaces:
Iterator<T>

public abstract class AbstractIterator<T> extends Object implements Iterator<T>
  • Field Details

  • Constructor Details

    • AbstractIterator

      public AbstractIterator()
  • Method Details

    • hasNext

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

      public final @Nullable T next()
      Specified by:
      next in interface Iterator<T>
    • tryComputeNext

      protected abstract @Nullable T tryComputeNext()
    • complete

      protected final void complete()