| Package | Description |
|---|---|
| net.ninjacat.smooth.iterators |
| Modifier and Type | Method and Description |
|---|---|
Iter<E> |
Iter.filter(Predicate<E> predicate)
Filters out elements of iterable iterator based on predicate.
|
static <E> Iter<E> |
Iter.fromArray(E[] data)
Creates rich iterator wrapper around array of elements
|
<R> Iter<R> |
Iter.map(Func<R,E> func)
Maps all the values in the iterator to other values using supplied function.
|
static <E> Iter<E> |
Iter.of(Collection<E> coll)
Creates iterator over collection.
|
static <E> Iter<E> |
Iter.of(E... data)
Creates rich iterator wrapper around array of elements
|
static <E> Iter<E> |
Iter.of(Enumeration<E> enumeration) |
static <E> Iter<E> |
Iter.of(Iterator<E> iter)
Creates rich iterator wrapper around Java
Iterator. |
static Iter<Integer> |
Iters.range(int to)
Generates an iterable for a range from zero to specified value, upper bound value is not included
|
static Iter<Integer> |
Iters.range(int from,
int to)
Generate iterable which returns integers in range [from; to)
|
static <T> Iter<T> |
Iters.repeat(T value,
int count)
Returns iterable which generates the same value for specified number of iterations
|
Copyright © 2018. All rights reserved.