Class QuantityBigDecimal<Unit extends MeasurementUnit<Unit>>
java.lang.Object
de.xima.fc.common.measure.QuantityBigDecimal<Unit>
- All Implemented Interfaces:
Quantity<Unit>, Serializable, Comparable<Quantity<Unit>>
A
Quantity that uses a BigDecimal as its value.- Since:
- 8.4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe numerical value of the quantity, as aBigDecimal.The numerical value of the quantity, as aBigInteger.intConvert this quantity to the given unit.doubleThe numerical value of the quantity, as aDouble.final booleanfloatThe numerical value of the quantity, as aFloat.inthashCode()intintValue()The numerical value of the quantity, as anInteger.longThe numerical value of the quantity, as aLong.final StringtoString()unit()The unit of the quantity.value()The numerical value of the quantity.
-
Constructor Details
-
QuantityBigDecimal
-
-
Method Details
-
bigDecimalValue
Description copied from interface:QuantityThe numerical value of the quantity, as aBigDecimal.- Returns:
- The value of the quantity.
-
bigIntegerValue
Description copied from interface:QuantityThe numerical value of the quantity, as aBigInteger.- Returns:
- The value of the quantity.
-
compareTo
-
convertTo
-
doubleValue
-
floatValue
-
hashCode
-
intValue
-
longValue
-
unit
-
value
-
equals
-
toString
-