Constructor and Description |
---|
TypedValue(double value)
Creates for an
double value. |
TypedValue(double value,
int numberDecimalPlaces)
Creates for an
double value. |
TypedValue(int value)
Creates for an
int value. |
TypedValue(String value)
Creates for a
String value. |
TypedValue(String value,
boolean isNumeric) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getValue()
The value.
|
int |
hashCode() |
boolean |
isNumeric()
Whether the value is numeric or not.
|
String |
toString() |
public TypedValue(String value)
String
value.value
- the valuepublic TypedValue(int value)
int
value.value
- the valuepublic TypedValue(double value, int numberDecimalPlaces)
double
value.value
- the valuenumberDecimalPlaces
- the number of decimal places to store for the value.public TypedValue(double value)
double
value.value
- the valuepublic TypedValue(String value, boolean isNumeric)
public String getValue()
public boolean isNumeric()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.