Class MoreIterables


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

      • batchClosedRangeStream

        public static Stream<List<Long>> batchClosedRangeStream​(long from,
                                                                long to,
                                                                int batch)
      • batchClosedRange

        public static Iterable<List<Long>> batchClosedRange​(long from,
                                                            long to,
                                                            int batch)
      • batchClosedSimpleRangeStream

        public static Stream<com.google.common.collect.Range<Long>> batchClosedSimpleRangeStream​(long from,
                                                                                                 long to,
                                                                                                 int batch)
      • batchClosedSimpleRange

        public static Iterable<com.google.common.collect.Range<Long>> batchClosedSimpleRange​(long from,
                                                                                             long to,
                                                                                             int batch)