public interface PossibleUnitConversions
| Modifier and Type | Method and Description |
|---|---|
List<Entity> |
asEntities(String ownerFieldName,
Entity ownerEntity)
Get all matching conversions as list of UnitConversionItem entities, belonging to specified owner Entity.
|
Map<String,BigDecimal> |
asUnitToConversionMap() |
BigDecimal |
convertTo(BigDecimal value,
String unitTo) |
BigDecimal |
convertTo(BigDecimal value,
String unitTo,
int roundMode) |
Set<String> |
getSupportedUnits() |
String |
getUnitFrom() |
boolean |
isDefinedFor(String unit) |
boolean |
isEmpty() |
List<Entity> asEntities(String ownerFieldName, Entity ownerEntity)
ownerFieldName - owner entity field nameownerEntity - owner entityMap<String,BigDecimal> asUnitToConversionMap()
BigDecimal convertTo(BigDecimal value, String unitTo)
value - unitTo - UnsupportedUnitConversionException - if conversion is not definedBigDecimal convertTo(BigDecimal value, String unitTo, int roundMode)
value - unitTo - roundMode - UnsupportedUnitConversionException - if conversion is not definedString getUnitFrom()
boolean isDefinedFor(String unit)
unit - boolean isEmpty()
getUnitFrom()).Copyright © 2010-2025 Qcadoo Limited