Removed unnecessary iteratorStart property of ranges.

This commit is contained in:
Evgeny Gerashchenko
2013-01-22 21:14:10 +04:00
parent eb8107115d
commit 9cd67dfc5c
7 changed files with 1 additions and 36 deletions
-4
View File
@@ -87,10 +87,6 @@ public final class ByteRange implements Range<Byte>, ByteIterable {
return start;
}
public byte getIteratorStart () {
return count == 0 ? 1 : start;
}
public byte getEnd() {
return (byte) (count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1);
}
-4
View File
@@ -87,10 +87,6 @@ public final class CharRange implements Range<Character>, CharIterable {
return start;
}
public char getIteratorStart () {
return count == 0 ? 1 : start;
}
public char getEnd() {
return (char) (count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1);
}
+1 -5
View File
@@ -23,7 +23,7 @@ public final class IntRange implements Range<Integer>, IntIterable {
private final int start;
private final int count;
public static final IntRange EMPTY = new IntRange(0,0);
public static final IntRange EMPTY = new IntRange(0, 0);
public IntRange(int startValue, int count) {
this.start = startValue;
@@ -90,10 +90,6 @@ public final class IntRange implements Range<Integer>, IntIterable {
return count < 0;
}
public int getIteratorStart () {
return count == 0 ? 1 : start;
}
public int getStart() {
return start;
}
-4
View File
@@ -95,10 +95,6 @@ public final class LongRange implements Range<Long>, LongIterable {
return start;
}
public long getIteratorStart () {
return count == 0 ? 1 : start;
}
public long getEnd() {
return count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1;
}
-4
View File
@@ -94,10 +94,6 @@ public final class ShortRange implements Range<Short>, ShortIterable {
return start;
}
public int getIteratorStart () {
return count == 0 ? 1 : start;
}
public short getEnd() {
return (short) (count < 0 ? start + count + 1: count == 0 ? 0 : start+count-1);
}