public class NumericValue extends MangoValue implements java.lang.Comparable<NumericValue>
Modifier and Type | Field and Description |
---|---|
private double |
value |
Constructor and Description |
---|
NumericValue(double value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NumericValue that) |
<T extends MangoValue> |
compareTo(T that) |
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
int |
getDataType() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntegerValue() |
java.lang.Object |
getObjectValue() |
java.lang.String |
getStringValue() |
boolean |
hasDoubleRepresentation() |
int |
hashCode() |
java.lang.Number |
numberValue() |
static NumericValue |
parseNumeric(java.lang.String s) |
java.lang.String |
toString() |
numberValue, objectToValue, stringToValue
public static NumericValue parseNumeric(java.lang.String s)
public boolean hasDoubleRepresentation()
hasDoubleRepresentation
in class MangoValue
public double getDoubleValue()
getDoubleValue
in class MangoValue
public float getFloatValue()
public java.lang.String getStringValue()
getStringValue
in class MangoValue
public boolean getBooleanValue()
getBooleanValue
in class MangoValue
public java.lang.Object getObjectValue()
getObjectValue
in class MangoValue
public int getIntegerValue()
getIntegerValue
in class MangoValue
public java.lang.Number numberValue()
numberValue
in class MangoValue
public int getDataType()
getDataType
in class MangoValue
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(NumericValue that)
compareTo
in interface java.lang.Comparable<NumericValue>
public <T extends MangoValue> int compareTo(T that)
compareTo
in class MangoValue