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> |
iterator(T element) |
static <T> Iterator<T> |
singleton(T element) |
static <T> Iterator<T> |
singletonIterator(T element) |
static <T> List<T> |
toList(Iterator<T> i) |
static <T> Set<T> |
toSet(Iterator<T> i) |
public static final <T> Iterator<T> emptyIterator()
public static final <T> Iterator<T> singletonIterator(T element)
public static <T> Iterator<T> singleton(T element)
public static <T> Iterator<T> iterator(T element)
public static <T> Iterator<T> iterator(T... elements)
public static <T> Iterator<T> iterator(int size, T... elements)
Copyright © 2013. All Rights Reserved.