Class MoreStreams


  • public class MoreStreams
    extends Object
    Author:
    w.vela
    • Method Detail

      • longRangeClosed

        public static LongStream longRangeClosed​(long from,
                                                 long to)
      • intRangeClosed

        public static IntStream intRangeClosed​(int from,
                                               int to)
      • toStream

        public static <T> Stream<T> toStream​(Iterator<T> iterator)
      • toStream

        public static <T> Stream<T> toStream​(Iterable<T> iterable)
      • partition

        public static <T> Stream<List<T>> partition​(Stream<T> stream,
                                                    int size)