public class Iterables
extends java.lang.Object
Zephyr Business Solution
Constructor and Description |
---|
Iterables() |
Modifier and Type | Method and Description |
---|---|
static Iterable |
fromIterator(java.util.Iterator it)
Transforms an Iterator object to an Iterable object.
|
static Iterable |
seq(Iterable[] arr)
Create a new Iterable object that sequentially iterates through
the Iterable objects in an array.
|
static Iterable |
seq(Iterable it1,
Iterable it2)
Create a new Iterable object that sequentially iterates through
the given two Iterable object.
|
public static Iterable seq(Iterable it1, Iterable it2)
it1
- the first Iterable object.it2
- the second Iterable object.public static Iterable seq(Iterable[] arr)
arr
- the array.public static Iterable fromIterator(java.util.Iterator it)
it
- the Iterator object.