Class Iterables
- java.lang.Object
-
- org.elasticsearch.common.util.iterable.Iterables
-
public class Iterables extends Object
-
-
Constructor Summary
Constructors Constructor Description Iterables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Iterable<T>concat(Iterable<T>... inputs)static <T> Iterable<T>flatten(Iterable<? extends Iterable<T>> inputs)Flattens the two levelIterableinto a singleIterable.static <T> Tget(Iterable<T> iterable, int position)
-
-
-
Method Detail
-
flatten
public static <T> Iterable<T> flatten(Iterable<? extends Iterable<T>> inputs)
Flattens the two levelIterableinto a singleIterable. Note that this pre-caches the values from the outerIterable, but not the values from the inner one.
-
get
public static <T> T get(Iterable<T> iterable, int position)
-
-