Added "empty" constant to DoubleRange and FloatRange for uniformity.

This commit is contained in:
Evgeny Gerashchenko
2012-08-08 22:48:51 +04:00
parent e771fd234d
commit 4a364f4c26
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@ public final class DoubleRange implements Range<Double> {
private final double start;
private final double size;
public static final DoubleRange empty = new DoubleRange(0, 0);
public DoubleRange(double startValue, double size) {
this.start = startValue;
this.size = size;
+2
View File
@@ -23,6 +23,8 @@ public final class FloatRange implements Range<Float> {
private final float start;
private final float size;
public static final FloatRange empty = new FloatRange(0, 0);
public FloatRange(float startValue, float size) {
this.start = startValue;
this.size = size;