Package com.github.phantomthief.util
Class MoreIterables
- java.lang.Object
-
- com.github.phantomthief.util.MoreIterables
-
public final class MoreIterables extends Object
- Author:
- w.vela
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Iterable<List<Long>>batchClosedRange(long from, long to, int batch)static Stream<List<Long>>batchClosedRangeStream(long from, long to, int batch)static Iterable<com.google.common.collect.Range<Long>>batchClosedSimpleRange(long from, long to, int batch)static Stream<com.google.common.collect.Range<Long>>batchClosedSimpleRangeStream(long from, long to, int batch)
-
-
-
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)
-
-