- All Implemented Interfaces:
Generator<T>
A sequence
Generator. It generates a sequence by passing the previous result (or initial value) into a given
Function.
-
Constructor Summary
Constructors
-
Method Summary
Generates and returns another value.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Sequence
public Sequence(T first,
Function<? super T,? extends T> function)
-
Method Details
-
next
Generates and returns another value.
- Specified by:
next in interface Generator<T>