public class Iterators
extends java.lang.Object
Iterator
implementations.Modifier and Type | Class and Description |
---|---|
static class |
Iterators.Adapter<T,U>
Iterator that wraps another Iterator and changes its type. |
static class |
Iterators.Array<T>
Array iterator.
|
static class |
Iterators.Filter<T>
Filter out objects from another iterator.
|
static class |
Iterators.Map<T,U>
For each U, apply U->Iterator<T> function and then iterate all
the resulting T.
|
(package private) static class |
Iterators.ReadOnly<T> |
(package private) static class |
Iterators.Singleton<T>
Iterator that returns a single (or no) value. |
static class |
Iterators.Union<T>
Union of two iterators.
|
(package private) static class |
Iterators.Unique<T>
Only return unique items.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Iterator |
EMPTY |
Constructor and Description |
---|
Iterators() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Iterator<T> |
empty() |
static <T> java.util.Iterator<T> |
singleton(T value) |