Constructor and Description |
---|
IteratorConcat() |
Modifier and Type | Method and Description |
---|---|
void |
add(Iterator<T> iter) |
static <T> Iterator<T> |
concat(Iterator<T> iter1,
Iterator<T> iter2)
Usually, it is better to create an IteratorConcat explicitly and add iterator if there are going to be many.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public static <T> Iterator<T> concat(Iterator<T> iter1, Iterator<T> iter2)
iter1
- iter2
- IteratorCons
Licenced under the Apache License, Version 2.0