Class Iterables
org.elasticsearch.common.util.iterable.Iterables
public class Iterables
extends
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> <T>
<T>... inputs)
static <T> <T>
<? extends <T>> inputs)
Flattens the two levelIterable
into a singleIterable
.static <T> T
<T> iterable, int position)
static <T> int
<T> iterable, <T> predicate)
static long
<?> iterable)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
Iterables
public Iterables()
-
-
Method Details
-
concat
public static <T> <T> concat(<T>... inputs) -
flatten
public static <T> <T> flatten(<? extends <T>> inputs)Flattens the two levelIterable
into 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(<T> iterable, int position) -
indexOf
public static <T> int indexOf(<T> iterable, <T> predicate) -
size
public static long size(<?> iterable)
-