Class IterableUtils


  • public class IterableUtils
    extends Object
    A collection of utilities that expand the usage of Iterable.
    • Method Detail

      • toStream

        public static <E> Stream<E> toStream​(Iterable<E> iterable)
        Convert the given Iterable to a Stream.
        Type Parameters:
        E - type of the elements of the iterable
        Parameters:
        iterable - to convert to a stream
        Returns:
        stream converted from the given Iterable