[Minor] Removed duplicate constructors
This commit is contained in:
parent
c1cab0632d
commit
2f17b6a306
|
@ -32,7 +32,7 @@ public class BooleanValue implements IValue<Boolean>, Serializable {
|
||||||
|
|
||||||
private Boolean value;
|
private Boolean value;
|
||||||
|
|
||||||
public BooleanValue(boolean value) {
|
public BooleanValue(Boolean value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class FloatListValue implements IValue<List<Double>>, Serializable {
|
||||||
|
|
||||||
private List<Double> value;
|
private List<Double> value;
|
||||||
|
|
||||||
public FloatListValue(double value) {
|
public FloatListValue(Double value) {
|
||||||
this.value = Collections.singletonList(value);
|
this.value = Collections.singletonList(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class FloatValue implements IValue<Double>, Serializable {
|
||||||
|
|
||||||
private Double value;
|
private Double value;
|
||||||
|
|
||||||
public FloatValue(double value) {
|
public FloatValue(Double value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,10 +41,6 @@ public class FloatValue implements IValue<Double>, Serializable {
|
||||||
this.value = value.doubleValue();
|
this.value = value.doubleValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public FloatValue(int value) {
|
|
||||||
this.value = Integer.valueOf(value).doubleValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public FloatValue(String valueAsString) throws NumberFormatException {
|
public FloatValue(String valueAsString) throws NumberFormatException {
|
||||||
this.value = Double.parseDouble(valueAsString);
|
this.value = Double.parseDouble(valueAsString);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class IntegerValue implements IValue<Integer>, Serializable {
|
||||||
|
|
||||||
private Integer value;
|
private Integer value;
|
||||||
|
|
||||||
public IntegerValue(int value) {
|
public IntegerValue(Integer value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue