Class CustomSymbolCurrency
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.util.MeasureUnit
org.graalvm.shadowed.com.ibm.icu.util.Currency
org.graalvm.shadowed.com.ibm.icu.impl.number.CustomSymbolCurrency
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Currency
Currency.CurrencyStringInfo, Currency.CurrencyUsageNested classes/interfaces inherited from class MeasureUnit
MeasureUnit.Complexity, MeasureUnit.Factory, MeasureUnit.MeasurePrefix -
Field Summary
Fields inherited from class Currency
FORMAL_SYMBOL_NAME, LONG_NAME, NARROW_SYMBOL_NAME, PLURAL_LONG_NAME, SYMBOL_NAME, VARIANT_SYMBOL_NAMEFields inherited from class MeasureUnit
ACRE, ACRE_FOOT, AMPERE, ARC_MINUTE, ARC_SECOND, ASTRONOMICAL_UNIT, ATMOSPHERE, BAR, BARREL, BEAUFORT, BIT, BRITISH_THERMAL_UNIT, BUSHEL, BYTE, CALORIE, CANDELA, CARAT, CELSIUS, CENTILITER, CENTIMETER, CENTURY, CUBIC_CENTIMETER, CUBIC_FOOT, CUBIC_INCH, CUBIC_KILOMETER, CUBIC_METER, CUBIC_MILE, CUBIC_YARD, CUP, CUP_METRIC, DALTON, DAY, DAY_PERSON, DECADE, DECILITER, DECIMETER, DEGREE, DESSERT_SPOON, DESSERT_SPOON_IMPERIAL, DOT, DOT_PER_CENTIMETER, DOT_PER_INCH, DRAM, DROP, DUNAM, EARTH_MASS, EARTH_RADIUS, ELECTRONVOLT, EM, FAHRENHEIT, FATHOM, FLUID_OUNCE, FLUID_OUNCE_IMPERIAL, FOODCALORIE, FOOT, FURLONG, G_FORCE, GALLON, GALLON_IMPERIAL, GASOLINE_ENERGY_DENSITY, GENERIC_TEMPERATURE, GIGABIT, GIGABYTE, GIGAHERTZ, GIGAWATT, GRAIN, GRAM, HECTARE, HECTOLITER, HECTOPASCAL, HERTZ, HORSEPOWER, HOUR, INCH, INCH_HG, ITEM, JIGGER, JOULE, KARAT, KELVIN, KILOBIT, KILOBYTE, KILOCALORIE, KILOGRAM, KILOHERTZ, KILOJOULE, KILOMETER, KILOMETER_PER_HOUR, KILOPASCAL, KILOWATT, KILOWATT_HOUR, KILOWATT_HOUR_PER_100_KILOMETER, KNOT, LIGHT_SPEED, LIGHT_YEAR, LITER, LITER_PER_100KILOMETERS, LITER_PER_KILOMETER, LUMEN, LUX, MEGABIT, MEGABYTE, MEGAHERTZ, MEGALITER, MEGAPASCAL, MEGAPIXEL, MEGAWATT, METER, METER_PER_SECOND, METER_PER_SECOND_SQUARED, METRIC_TON, MICROGRAM, MICROMETER, MICROSECOND, MILE, MILE_PER_GALLON, MILE_PER_GALLON_IMPERIAL, MILE_PER_HOUR, MILE_SCANDINAVIAN, MILLIAMPERE, MILLIBAR, MILLIGRAM, MILLIGRAM_OFGLUCOSE_PER_DECILITER, MILLIGRAM_PER_DECILITER, MILLILITER, MILLIMETER, MILLIMETER_OF_MERCURY, MILLIMOLE_PER_LITER, MILLISECOND, MILLIWATT, MINUTE, MOLE, MONTH, MONTH_PERSON, NANOMETER, NANOSECOND, NAUTICAL_MILE, NEWTON, NEWTON_METER, NIGHT, OHM, OUNCE, OUNCE_TROY, PARSEC, PART_PER_MILLION, PASCAL, PERCENT, PERMILLE, PERMYRIAD, PETABYTE, PICOMETER, PINCH, PINT, PINT_METRIC, PIXEL, PIXEL_PER_CENTIMETER, PIXEL_PER_INCH, POINT, POUND, POUND_FOOT, POUND_FORCE, POUND_PER_SQUARE_INCH, QUART, QUART_IMPERIAL, QUARTER, RADIAN, REVOLUTION_ANGLE, SECOND, SOLAR_LUMINOSITY, SOLAR_MASS, SOLAR_RADIUS, SQUARE_CENTIMETER, SQUARE_FOOT, SQUARE_INCH, SQUARE_KILOMETER, SQUARE_METER, SQUARE_MILE, SQUARE_YARD, STONE, subType, TABLESPOON, TEASPOON, TERABIT, TERABYTE, THERM_US, TON, TONNE, type, VOLT, WATT, WEEK, WEEK_PERSON, YARD, YEAR, YEAR_PERSON -
Constructor Summary
ConstructorsConstructorDescriptionCustomSymbolCurrency(String isoCode, String currency1Sym, String currency2Sym) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the ISO 4217 3-letter code for this currency object.Returns the display name for the given currency in the given locale.Returns the display name for the given currency in the given locale.inthashCode()static Currencyresolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) Methods inherited from class Currency
fromJavaCurrency, getAvailableCurrencies, getAvailableCurrencyCodes, getAvailableCurrencyCodes, getAvailableLocales, getAvailableULocales, getDefaultFractionDigits, getDefaultFractionDigits, getDisplayName, getDisplayName, getInstance, getInstance, getInstance, getKeywordValuesForLocale, getName, getName, getNumericCode, getParsingTrie, getRoundingIncrement, getRoundingIncrement, getSymbol, getSymbol, getSymbol, isAvailable, parse, registerInstance, toJavaCurrency, toString, unregisterMethods inherited from class MeasureUnit
addUnit, findBySubType, forIdentifier, fromMeasureUnitImpl, getAvailable, getAvailable, getAvailableTypes, getComplexity, getCopyOfMeasureUnitImpl, getDimensionality, getIdentifier, getPrefix, getSubtype, getType, internalGetInstance, product, reciprocal, splitToSingleUnits, withDimensionality, withPrefix
-
Constructor Details
-
CustomSymbolCurrency
-
-
Method Details
-
resolve
-
getName
Description copied from class:CurrencyReturns the display name for the given currency in the given locale. For example, the display name for the USD currency object in the en_US locale is "$".- Overrides:
getNamein classCurrency- Parameters:
locale- locale in which to display currencynameStyle- selector for which kind of name to return. The nameStyle should be SYMBOL_NAME, NARROW_SYMBOL_NAME, or LONG_NAME. Otherwise, throw IllegalArgumentException.isChoiceFormat- isChoiceFormat[0] is always set to false, or isChoiceFormat can be null; display names are static strings; since ICU 4.4, ChoiceFormat patterns are no longer supported- Returns:
- display string for this currency. If the resource data contains no entry for this currency, then the ISO 4217 code is returned.
- See Also:
-
getName
Description copied from class:CurrencyReturns the display name for the given currency in the given locale. For example, the SYMBOL_NAME for the USD currency object in the en_US locale is "$". The PLURAL_LONG_NAME for the USD currency object when the currency amount is plural is "US dollars", such as in "3.00 US dollars"; while the PLURAL_LONG_NAME for the USD currency object when the currency amount is singular is "US dollar", such as in "1.00 US dollar".- Overrides:
getNamein classCurrency- Parameters:
locale- locale in which to display currencynameStyle- selector for which kind of name to returnpluralCount- plural count string for this localeisChoiceFormat- isChoiceFormat[0] is always set to false, or isChoiceFormat can be null; display names are static strings; since ICU 4.4, ChoiceFormat patterns are no longer supported- Returns:
- display string for this currency. If the resource data contains no entry for this currency, then the ISO 4217 code is returned.
-
getCurrencyCode
Description copied from class:CurrencyReturns the ISO 4217 3-letter code for this currency object.- Overrides:
getCurrencyCodein classCurrency
-
hashCode
public int hashCode()Description copied from class:MeasureUnit- Overrides:
hashCodein classMeasureUnit
-
equals
Description copied from class:MeasureUnit- Overrides:
equalsin classMeasureUnit
-