Class While<T>

java.lang.Object
org.dmfs.jems2.iterator.BaseIterator<T>
org.dmfs.jems2.iterator.While<T>
All Implemented Interfaces:
Iterator<T>

public final class While<T> extends BaseIterator<T>
An Iterator that iterates the elements of the delegate while they match the given Predicate and stops when this is no longer the case. Note, this will not necessarily iterate all elements of the delegate.
  • Field Details

    • mNext

      public T mNext
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public T next()