@Test public void testRangeWithCount() { assertEquals(Arrays.asList(1, 2, 3, 4, 5), toList(Range.createWithCount(1, 5))); }
public static Range createWithCount(int start, int count) { return create(start, start + count); }
Range implements Iterable<Integer> { public static Range createWithCount(int start, int count) { return create(start, start + count); } }
Range implements Iterable<Integer> { public static Range createWithCount(int start, int count) { return create(start, start + count); } private  Range(int start, int end, int step); }
Range implements Iterable<Integer> { public static Range createWithCount(int start, int count) { return create(start, start + count); } private  Range(int start, int end, int step); static Range createWithCount(int start, int count); static Range create(int start, int end); static Range createWithStep(int start, int end, int step); @Override Iterator<Integer> iterator(); @Override String toString(); }
Range implements Iterable<Integer> { public static Range createWithCount(int start, int count) { return create(start, start + count); } private  Range(int start, int end, int step); static Range createWithCount(int start, int count); static Range create(int start, int end); static Range createWithStep(int start, int end, int step); @Override Iterator<Integer> iterator(); @Override String toString();  }