public interface Generatable<T>
Generator. This is the equivalent of Iterable but for infinite generators. For the sake of single responsibility
and for avoiding the risk of infinite loops this doesn't extent Iterable. Instead you should use an explicit Iterable adapter like Infinite.
Instances of this type must be immutable.
| Modifier and Type | Method and Description |
|---|---|
Generator<T> |
generator() |