Class Iterables


  • public class Iterables
    extends Object
    • Constructor Detail

      • Iterables

        public Iterables()
    • Method Detail

      • flatten

        public static <T> Iterable<T> flatten​(Iterable<? extends Iterable<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​(Iterable<T> iterable,
                                int position)