Package org.nasengolem.util.units
Class PhysicalQuantity
java.lang.Object
org.nasengolem.util.units.PhysicalQuantity
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intprotected abstract PhysicalQuantity.UnitgetRoundedValue(PhysicalQuantity.Unit unit, int decimalPlaces) doubletoString()toString(PhysicalQuantity.Unit unit, int decimalPlaces) toString(PhysicalQuantity.Unit unit, int decimalPlaces, boolean abbreviateUnitName)
-
Field Details
-
valueInBaseUnit
protected final double valueInBaseUnit
-
-
Constructor Details
-
PhysicalQuantity
-
-
Method Details
-
getInternalUnit
-
getDefaultDecimalPlaces
protected abstract int getDefaultDecimalPlaces() -
getValue
-
getRoundedValue
-
toString
-
toString
-
toString
-
toString
-