public final class Infinite<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Generatable to Iterable adapter which continues iterating forever. Be careful when using this in a for loop and make sure there is
another exit point.| Constructor and Description |
|---|
Infinite(Generatable<T> generatable) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<T> |
iterator() |
public Infinite(Generatable<T> generatable)