Class NonNullIterator<T>

java.lang.Object
ch.njol.util.coll.iterator.NonNullIterator<T>
All Implemented Interfaces:
Iterator<T>

public abstract class NonNullIterator<T> extends Object implements Iterator<T>
  • Constructor Details

    • NonNullIterator

      public NonNullIterator()
  • Method Details

    • hasNext

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

      protected abstract @Nullable T getNext()
    • next

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

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