| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private HashMap | mapToConversionRate
Map from any simple unit (i.e. "meter", "foot", "inch") to its basic/root conversion rate info. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: true if theMeasureUnitImpl is simple, false otherwise.Checks if the |
| public ArrayList | |
| public ArrayList | Returns: The base units in theSingleUnitImpl with applying the dimensionality only and not the SI prefix.Note This method is helpful when checking the convertibility because no need to check convertibility. An instance of SingleUnitImpl. singleUnit)
|
| public MeasureUnitImpl | |
| public String | |
| private UnitsConverter. | getFactorToBase(SingleUnitImpl singleUnit)
Extracts the factor from a |
| public UnitsConverter. | |
| protected BigDecimal | getOffset(MeasureUnitImpl source, MeasureUnitImpl target, UnitsConverter.
|
| mapToConversionRate | back to summary |
|---|---|
| private HashMap<String, ConversionRates. Map from any simple unit (i.e. "meter", "foot", "inch") to its basic/root conversion rate info. | |
| ConversionRates | back to summary |
|---|---|
| public ConversionRates() | |
| checkSimpleUnit | back to summary |
|---|---|
| private boolean checkSimpleUnit(MeasureUnitImpl measureUnitImpl) Checks if the
| |
| extractBaseUnits | back to summary |
|---|---|
| public ArrayList | |
| extractBaseUnits | back to summary |
|---|---|
public ArrayList
| |
| extractCompoundBaseUnit | back to summary |
|---|---|
| public MeasureUnitImpl extractCompoundBaseUnit(MeasureUnitImpl measureUnit) | |
| extractSystems | back to summary |
|---|---|
public String extractSystems(SingleUnitImpl singleUnit)
| |
| getFactorToBase | back to summary |
|---|---|
| private UnitsConverter. Extracts the factor from a | |
| getFactorToBase | back to summary |
|---|---|
| public UnitsConverter. | |
| getOffset | back to summary |
|---|---|
| protected BigDecimal getOffset(MeasureUnitImpl source, MeasureUnitImpl target, UnitsConverter. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final BigDecimal | |
| private final String | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static BigDecimal | |
| public String | |
| public BigDecimal | |
| public String | |
| public String | Returns: the base unit.For example: ("meter", "foot", "inch", "mile" ... etc.) have "meter" as a base/root unit.
|
| conversionRate | back to summary |
|---|---|
| private final String conversionRate | |
| offset | back to summary |
|---|---|
| private final BigDecimal offset | |
| simpleUnit | back to summary |
|---|---|
private final String simpleUnit
| |
| systems | back to summary |
|---|---|
| private final String systems | |
| target | back to summary |
|---|---|
| private final String target | |
| ConversionRateInfo | back to summary |
|---|---|
| public ConversionRateInfo(String simpleUnit, String target, String conversionRate, String offset, String systems) | |
| forNumberWithDivision | back to summary |
|---|---|
| private static BigDecimal forNumberWithDivision(String numberWithDivision) | |
| getConversionRate | back to summary |
|---|---|
public String getConversionRate()
| |
| getOffset | back to summary |
|---|---|
public BigDecimal getOffset()
| |
| getSystems | back to summary |
|---|---|
public String getSystems()
| |
| getTarget | back to summary |
|---|---|
public String getTarget()
| |
| Modifier and Type | Field and Description |
|---|---|
| private HashMap | mapToConversionRate
Map from any simple unit (i.e. "meter", "foot", "inch") to its basic/root conversion rate info. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HashMap | |
| public void | put(UResource.
Initially the key string of the enumeration-start resource.
Empty if the enumeration starts at the top level of the bundle.
Reuse for output values from Array and Table getters. key,Call getArray() or getTable() as appropriate.
Then reuse for output values from Array and Table getters. value,true if the bundle has no parent;
that is, its top-level table has the nofallback attribute,
or it is the root bundle of a locale tree. noFallback)Implements abstract com. |
| mapToConversionRate | back to summary |
|---|---|
| private HashMap<String, ConversionRates. Map from any simple unit (i.e. "meter", "foot", "inch") to its basic/root conversion rate info. | |
| ConversionRatesSink | back to summary |
|---|---|
| public ConversionRatesSink() | |
| getMapToConversionRate | back to summary |
|---|---|
| public HashMap | |
| put | back to summary |
|---|---|
| public void put(UResource. Implements abstract com. Doc from com. Called once for each bundle (child-parent-...-root). The value is normally an array or table resource, and implementations of this method normally iterate over the tree of resource items stored there.
| |