@Test public void createIntRange() { NumberRange.IntRange intRange = NumberRange.range(10); assertEquals(0, intRange.getFromInclude()); assertEquals(10, intRange.getToExclude()); assertEquals(1, intRange.getStep()); assertEquals(10, intRange.size()); log.debug(StringTool.join(intRange, ",")); intRange.reset(); for (int x : intRange) System.out.print(x + ", "); }
public static IntRange range(int fromInclude, int toExclude, int step) { return new IntRange(fromInclude, toExclude, step); }
NumberRange implements Iterable<T> { public static IntRange range(int fromInclude, int toExclude, int step) { return new IntRange(fromInclude, toExclude, step); } }
NumberRange implements Iterable<T> { public static IntRange range(int fromInclude, int toExclude, int step) { return new IntRange(fromInclude, toExclude, step); } private  NumberRange(); }
NumberRange implements Iterable<T> { public static IntRange range(int fromInclude, int toExclude, int step) { return new IntRange(fromInclude, toExclude, step); } private  NumberRange(); static IntRange range(int fromInclude, int toExclude, int step); static IntRange range(int fromInclude, int toExclude); static IntRange range(int count); static LongRange range(long fromInclude, long toExclude, long step); static LongRange range(long fromInclude, long toExclude); static LongRange range(long count); static List<IntRange> partition(IntRange range, int partitionCount); static List<IntRange> partition(int fromInclude, int toExclude, int step, int partitionCount); static List<IntRange> partition(int fromInclude, int toExclude, int partitionCount); static List<IntRange> partition(int count, int partitionCount); static List<LongRange> partition(LongRange range, int partitionCount); static List<LongRange> partition(long fromInclude, long toExclude, int step, int partitionCount); static List<LongRange> partition(long fromInclude, long toExclude, int partitionCount); static List<LongRange> partition(long count, int partitionCount); }
NumberRange implements Iterable<T> { public static IntRange range(int fromInclude, int toExclude, int step) { return new IntRange(fromInclude, toExclude, step); } private  NumberRange(); static IntRange range(int fromInclude, int toExclude, int step); static IntRange range(int fromInclude, int toExclude); static IntRange range(int count); static LongRange range(long fromInclude, long toExclude, long step); static LongRange range(long fromInclude, long toExclude); static LongRange range(long count); static List<IntRange> partition(IntRange range, int partitionCount); static List<IntRange> partition(int fromInclude, int toExclude, int step, int partitionCount); static List<IntRange> partition(int fromInclude, int toExclude, int partitionCount); static List<IntRange> partition(int count, int partitionCount); static List<LongRange> partition(LongRange range, int partitionCount); static List<LongRange> partition(long fromInclude, long toExclude, int step, int partitionCount); static List<LongRange> partition(long fromInclude, long toExclude, int partitionCount); static List<LongRange> partition(long count, int partitionCount);  }