Package net.thevpc.common.util
Class XNumber
java.lang.Object
java.lang.Number
net.thevpc.common.util.XNumber
- All Implemented Interfaces:
Serializable
- Author:
- taha.bensalah@gmail.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
XNumber
-
-
Method Details
-
valueOf
-
add
-
neg
-
negate
-
tilde
-
complement
-
add
-
sub
-
subtract
-
mul
-
multiply
-
div
-
divide
-
toNumber
-
hashCode
public int hashCode() -
equals
-
equals
-
comparetTo
-
validateType
-
byteValue
public byte byteValue() -
shortValue
public short shortValue()- Overrides:
shortValuein classNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
isInteger
public boolean isInteger() -
isFloating
public boolean isFloating() -
isDecimal
public boolean isDecimal() -
bigDecimalValue
-
bigIntegerValue
-
bestFit
-
getNumber
-