Class CompactData
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.number.CompactData
- All Implemented Interfaces:
MultiplierProducer
Datatype for compact notation data. Includes logic for data loading.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetMultiplier(int magnitude) Maps a magnitude to a multiplier in powers of ten.getPattern(int magnitude, PluralRules rules, DecimalQuantity dq) voidgetUniquePatterns(Set<String> output) voidJava-only method used by CLDR tooling.voidpopulate(ULocale locale, String nsName, CompactDecimalFormat.CompactStyle compactStyle, CompactData.CompactType compactType)
-
Constructor Details
-
CompactData
public CompactData()
-
-
Method Details
-
populate
public void populate(ULocale locale, String nsName, CompactDecimalFormat.CompactStyle compactStyle, CompactData.CompactType compactType) -
populate
-
getMultiplier
public int getMultiplier(int magnitude) Description copied from interface:MultiplierProducerMaps a magnitude to a multiplier in powers of ten. For example, in compact notation in English, a magnitude of 5 (e.g., 100,000) should return a multiplier of -3, since the number is displayed in thousands.- Specified by:
getMultiplierin interfaceMultiplierProducer- Parameters:
magnitude- The power of ten of the input number.- Returns:
- The shift in powers of ten.
-
getPattern
-
getUniquePatterns
-