Class RealQuantityAdapter
java.lang.Object
org.episteme.core.measure.adapters.RealQuantityAdapter
Adapters between Episteme Real numbers and JSR-385 Quantities.
This class provides bidirectional conversion between Episteme's exact/approximate Real numbers and JSR-385 Quantity values.
* @author Silvere Martin-Michiellot- Since:
- 1.0
- Author:
- Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionExtracts the numeric value from a Quantity as a Real.static RealtoExactReal(Quantity<?> quantity) Converts a JSR-385 Quantity to a Episteme exact Real.toQuantity(Real value, Unit<Q> unit) Converts a Episteme Real to a JSR-385 Quantity.static RealConverts a JSR-385 Quantity to a Episteme Real.
-
Method Details
-
toQuantity
-
toReal
-
toExactReal
-
getValue
-