T - The type of the iterated elements.Frozen.@Deprecated
public final class Repeatable<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Iterable which iterates the elements of the given Iterator.
This is meant to speed up repeated access to slow iterators.
Note that Repeatable needs to synchronize access to the original iterator (and an internal list), which
causes some overhead. So only use this if reiterating the original source is impossible or expensive (compared to the
number of times you need to reiterate).
| Constructor and Description |
|---|
Repeatable(java.util.Iterator<T> iterator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<T> |
iterator()
Deprecated.
|