public class Iterators
extends java.lang.Object
Iterator implementations.| Modifier and Type | Class | 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. |
static class |
Iterators.Union<T> |
Union of two iterators.
|
| Constructor | Description |
|---|---|
Iterators() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> java.util.Iterator<T> |
empty() |
|
static <T> java.util.Iterator<T> |
singleton(T value) |
Copyright © 2018 Oracle. All rights reserved.