public abstract class InitProducers extends Object
Modifier and Type | Method and Description |
---|---|
static <R,S> Iterable<R> |
asIterable(InitProducer<? extends R,S> p) |
static <R,S> Iterator<R> |
asIterator(InitProducer<? extends R,S> p) |
static InitProducer<Integer,Integer> |
interval(int start,
int end) |
static <R,S extends R> |
loop(S init,
Predicate<? super S> cond,
Function<? super S,? extends S> iter) |
public static <R,S> Iterator<R> asIterator(InitProducer<? extends R,S> p)
public static <R,S> Iterable<R> asIterable(InitProducer<? extends R,S> p)
public static <R,S extends R> InitProducer<R,S> loop(S init, Predicate<? super S> cond, Function<? super S,? extends S> iter)
public static InitProducer<Integer,Integer> interval(int start, int end)
see also the complete user documentation .