Package org.apache.jena.atlas.iterator
Class IteratorTruncate<T>
- java.lang.Object
-
- org.apache.jena.atlas.iterator.IteratorSlotted<T>
-
- org.apache.jena.atlas.iterator.IteratorTruncate<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>,IteratorCloseable<T>,Closeable
public final class IteratorTruncate<T> extends IteratorSlotted<T>
Iterate while a condition is true, then stop. This iterator does not touch any elements after the first where the predicate is false.
-
-
Constructor Summary
Constructors Constructor Description IteratorTruncate(java.util.Iterator<T> iter, java.util.function.Predicate<T> predicate)
-