| Modifier and Type | Class and Description |
|---|---|
static interface |
IteratorUtil.ArrayIterator<T>
An
Iterator that has a notion of an "array index", which is the index of the "next" element in an
array. |
| Modifier and Type | Field and Description |
|---|---|
static Iterator |
AT_END
An iterator which is at its end.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterator<T> |
atEnd() |
static int |
elementCount(Iterator<Integer> iterator)
Retrieves, counts and discards all elements remaining on the iterator
|
static <T> Iterator<T> |
filter(Iterator<? extends T> delegate,
PredicateWhichThrows<? super T,? extends RuntimeException> qualifies)
Returns an iterator which skips the elements of the delegate which do not qualifiy.
|
static <T> IteratorUtil.ArrayIterator<T> |
iterator(T[] array) |
static <T> Iterator<T> |
repeat(int n,
T value) |
static <T> Iterator<T> |
repeat(T value) |
static <I,O> Iterator<O> |
transform(Iterator<? extends I> delegate,
Transformer<? super I,? extends O> transform)
Returns an iterator which iterates the transformed elements of the delegate
|
public static <T> Iterator<T> filter(Iterator<? extends T> delegate, PredicateWhichThrows<? super T,? extends RuntimeException> qualifies)
public static <I,O> Iterator<O> transform(Iterator<? extends I> delegate, Transformer<? super I,? extends O> transform)
public static <T> Iterator<T> repeat(T value)
public static <T> Iterator<T> repeat(int n, T value)
public static <T> IteratorUtil.ArrayIterator<T> iterator(T[] array)
Copyright © 2017 Arno Unkrig. All rights reserved.