| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private HashMap | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| private static String[] | getAllUsages(String usage)
Extracts all the sub-usages from a usage including the default one in the end. |
| public UnitPreferences. | |
| private UnitPreferences. | Returns: null if there is no entry associated to the category and usage. O.W. returns the corresponding UnitPreference[]
|
| mapToUnitPreferences | back to summary |
|---|---|
| private HashMap<String, HashMap<String, UnitPreferences. | |
| measurementSystem | back to summary |
|---|---|
| private static final Map<String, String> measurementSystem | |
| UnitPreferences | back to summary |
|---|---|
| public UnitPreferences() | |
| formMapKey | back to summary |
|---|---|
| public static String formMapKey(String category, String usage) | |
| getAllUsages | back to summary |
|---|---|
| private static String[] getAllUsages(String usage) Extracts all the sub-usages from a usage including the default one in the end. The usages will be in order starting with the longest matching one. For example: if usage : "person-height-child" the function will return: "person-height-child" "person-height" "person" "default" | |
| getPreferencesFor | back to summary |
|---|---|
| public UnitPreferences. | |
| getUnitPreferences | back to summary |
|---|---|
private UnitPreferences.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final BigDecimal | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BigDecimal | |
| public String | |
| public String |
| geq | back to summary |
|---|---|
| private final BigDecimal geq | |
| skeleton | back to summary |
|---|---|
| private final String skeleton | |
| unit | back to summary |
|---|---|
| private final String unit | |
| UnitPreference | back to summary |
|---|---|
| public UnitPreference(String unit, String geq, String skeleton) | |
| getGeq | back to summary |
|---|---|
| public BigDecimal getGeq() | |
| getSkeleton | back to summary |
|---|---|
| public String getSkeleton() | |
| getUnit | back to summary |
|---|---|
| public String getUnit() | |
| Modifier and Type | Field and Description |
|---|---|
| private HashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HashMap | |
| private void | insertUnitPreferences(String category, String usage, String region, UnitPreferences.
|
| 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. |
| mapToUnitPreferences | back to summary |
|---|---|
| private HashMap<String, HashMap<String, UnitPreferences. | |
| UnitPreferencesSink | back to summary |
|---|---|
| public UnitPreferencesSink() | |
| getMapToUnitPreferences | back to summary |
|---|---|
| public HashMap | |
| insertUnitPreferences | back to summary |
|---|---|
| private void insertUnitPreferences(String category, String usage, String region, UnitPreferences. | |
| put | back to summary |
|---|---|
| public void put(UResource. Implements abstract com. The unitPreferenceData structure (see icu4c/source/data/misc/units.txt) contains a hierarchy of category/usage/region, within which are a set of preferences. Hence three for-loops and another loop for the preferences themselves.
| |