public class IteratorUtils extends Object
| Constructor and Description |
|---|
IteratorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterator<T> |
concat(Iterator<? extends T> i1,
Iterator<? extends T> i2) |
static <T> Iterator<T> |
emptyIterator() |
static <T> Iterator<T> |
flatten(Iterator<? extends Iterable<T>> iterator) |
static <T> Iterator<T> |
iterator(int size,
T... elements) |
static <T> Iterator<T> |
iterator(T... elements) |
static <T> Iterator<T> |
singletonIterator(T element) |
static <T> List<T> |
toList(Iterator<T> i) |
static <T> Set<T> |
toSet(Iterator<T> i) |
Copyright © 2019. All rights reserved.