[Minor] Fixing constructors for State value
This commit is contained in:
parent
2f17b6a306
commit
349dcce6f7
|
@ -41,6 +41,10 @@ public class FloatValue implements IValue<Double>, Serializable {
|
||||||
this.value = value.doubleValue();
|
this.value = value.doubleValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FloatValue(Long value) {
|
||||||
|
this.value = value.doubleValue();
|
||||||
|
}
|
||||||
|
|
||||||
public FloatValue(String valueAsString) throws NumberFormatException {
|
public FloatValue(String valueAsString) throws NumberFormatException {
|
||||||
this.value = Double.parseDouble(valueAsString);
|
this.value = Double.parseDouble(valueAsString);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue