Class Iterables

org.elasticsearch.common.util.iterable.Iterables

public class Iterables extends
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> <T>
    <T>... inputs)
     
    static <T> <T>
    <? extends <T>> inputs)
    Flattens the two level Iterable into a single Iterable.
    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 level Iterable into a single Iterable. Note that this pre-caches the values from the outer Iterable, 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)