Package ch.njol.util.coll.iterator
Class StoppableIterator<T>
java.lang.Object
ch.njol.util.coll.iterator.StoppableIterator<T>
- All Implemented Interfaces:
Iterator<T>
@Deprecated(since="2.10.2",
forRemoval=true)
public class StoppableIterator<T>
extends Object
implements Iterator<T>
Deprecated, for removal: This API element is subject to removal in a future version.
unused
-
Constructor Summary
ConstructorsConstructorDescriptionStoppableIterator
(Iterator<T> iter, NullableChecker<T> stopper, boolean returnLast) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
Deprecated, for removal: This API element is subject to removal in a future version.next()
Deprecated, for removal: This API element is subject to removal in a future version.void
remove()
Deprecated, for removal: This API element is subject to removal in a future version.void
stop()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
StoppableIterator
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
iter
-stopper
- Called for every element. If it returns true the iteration is stopped.returnLast
- Whether to return the last element, i.e. the element on which the stopper stops. This doesn't change anything if the iterator ends before the stopper stops.
-
-
Method Details
-
hasNext
public boolean hasNext()Deprecated, for removal: This API element is subject to removal in a future version. -
next
Deprecated, for removal: This API element is subject to removal in a future version. -
remove
public void remove()Deprecated, for removal: This API element is subject to removal in a future version. -
stop
public void stop()Deprecated, for removal: This API element is subject to removal in a future version.
-