public final class Iters extends Object
| Modifier and Type | Method and Description |
|---|---|
static Iter<Integer> |
range(int to)
Generates an iterable for a range from zero to specified value, upper bound value is not included
|
static Iter<Integer> |
range(int from,
int to)
Generate iterable which returns integers in range [from; to)
|
static <T> Iter<T> |
repeat(T value,
int count)
Returns iterable which generates the same value for specified number of iterations
|
public static Iter<Integer> range(int from, int to)
from - starting valueto - upper boundIterpublic static Iter<Integer> range(int to)
to - upper bound of the rangerange(int, int)public static <T> Iter<T> repeat(T value, int count)
T - Type of the valuevalue - value to generatecount - number of iterationsCopyright © 2018. All rights reserved.