Removed static count() in all but IntRange.
This commit is contained in:
@@ -111,10 +111,6 @@ public final class ByteRange implements Range<Byte>, ByteIterable {
|
||||
return new ByteIteratorImpl(start, count, 1);
|
||||
}
|
||||
|
||||
public static ByteRange count(int length) {
|
||||
return new ByteRange((byte) 0, length);
|
||||
}
|
||||
|
||||
private static class ByteIteratorImpl extends ByteIterator {
|
||||
private final int step;
|
||||
private byte cur;
|
||||
|
||||
@@ -111,10 +111,6 @@ public final class CharRange implements Range<Character>, CharIterable {
|
||||
return new CharIteratorImpl(start, count, 1);
|
||||
}
|
||||
|
||||
public static CharRange count(int length) {
|
||||
return new CharRange((char) 0, length);
|
||||
}
|
||||
|
||||
private static class CharIteratorImpl extends CharIterator {
|
||||
private final int step;
|
||||
private char cur;
|
||||
|
||||
@@ -100,10 +100,6 @@ public final class DoubleRange implements Range<Double> {
|
||||
return size < 0 ? -size : size;
|
||||
}
|
||||
|
||||
public static DoubleRange count(int length) {
|
||||
return new DoubleRange(0, length);
|
||||
}
|
||||
|
||||
private static class DoubleIteratorImpl extends DoubleIterator {
|
||||
private final double step;
|
||||
private final double end;
|
||||
|
||||
@@ -96,10 +96,6 @@ public final class FloatRange implements Range<Float> {
|
||||
return size < 0 ? -size : size;
|
||||
}
|
||||
|
||||
public static FloatRange count(int length) {
|
||||
return new FloatRange(0, length);
|
||||
}
|
||||
|
||||
private static class FloatIteratorImpl extends FloatIterator {
|
||||
private final float step;
|
||||
private final float end;
|
||||
|
||||
@@ -112,10 +112,6 @@ public final class LongRange implements Range<Long>, LongIterable {
|
||||
return new LongIteratorImpl(start, count, 1);
|
||||
}
|
||||
|
||||
public static LongRange count(int length) {
|
||||
return new LongRange(0, length);
|
||||
}
|
||||
|
||||
private static class LongIteratorImpl extends LongIterator {
|
||||
private final long step;
|
||||
private long cur;
|
||||
|
||||
@@ -111,10 +111,6 @@ public final class ShortRange implements Range<Short>, ShortIterable {
|
||||
return new ShortIteratorImpl(start, count, 1);
|
||||
}
|
||||
|
||||
public static ShortRange count(int length) {
|
||||
return new ShortRange((byte) 0, length);
|
||||
}
|
||||
|
||||
private static class ShortIteratorImpl extends ShortIterator {
|
||||
private final int step;
|
||||
private short cur;
|
||||
|
||||
Reference in New Issue
Block a user