Uses of Class
com.onenetwork.platform.common.uom.Scope
Package | Description |
---|---|
com.onenetwork.platform.common.uom |
Service and interface for converting between different units of measure.
|
-
Uses of Scope in com.onenetwork.platform.common.uom
Methods in com.onenetwork.platform.common.uom with parameters of type Scope Modifier and Type Method Description double
UOMService. convert(java.lang.String enumName, double value, java.lang.String valueUOM, java.lang.String targetUOM, PlatformUserContext context, Scope... scopes)
For an enumeration type, converts the given value from a source unit of measure to a target unit of measure.double
UOMService. convertHierEnum(HierEnumConversionConfig hierEnumConversionConfig, double value, java.lang.String valueUOM, java.lang.String targetUOM, PlatformUserContext context, Scope... scopes)
For an enumeration type, converts the given value from a source unit of measure to a target unit of measure.Method parameters in com.onenetwork.platform.common.uom with type arguments of type Scope Modifier and Type Method Description double
UOMService. convertHierEnum(HierEnumConversionData conversionData, double value, java.lang.String valueUOM, java.lang.String targetUOM, PlatformUserContext context, java.util.List<java.util.List<Scope>> scopes)
For an enumeration type, converts the given value from a source unit of measure to a target unit of measure.HierEnumConversionData
UOMService. fetchHierEnumConversionData(HierEnumConversionConfig hierEnumConversionConfig, PlatformUserContext context, java.util.List<java.util.List<Scope>> scopes)
Return an in-memory cache of conversion data for the provided scopes.java.lang.Double
HierEnumConversionData. getConversionFactor(java.lang.String valueUOM, java.lang.String targetUOM, java.util.List<Scope> scopes)
Method to calculate the conversion factor for the provided scopes between the source and target UOMs without hitting the DB.static java.lang.String
HierEnumConversionData. getKey(java.util.List<Scope> scopes)
Utility method to create an in-memory key for the provided scopes