Class OceanusDecimalLocale
java.lang.Object
io.github.tonywasher.joceanus.oceanus.decimal.OceanusDecimalLocale
Locale constants.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor.protectedOceanusDecimalLocale(Locale pLocale) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringObtain the decimal string.protected CurrencyObtain the default currency.protected StringObtain the grouping string.protected intObtain the grouping size.protected charObtain the minus sign.protected StringObtain the grouping string.protected charObtain the perCent sign.protected charObtain the perMille sign.protected StringGet currency symbol.protected CurrencyparseCurrencySymbol(String pSymbol) Parse currency symbol.
-
Constructor Details
-
OceanusDecimalLocale
protected OceanusDecimalLocale()Constructor. -
OceanusDecimalLocale
Constructor.- Parameters:
pLocale- the locale
-
-
Method Details
-
getGroupingSize
protected int getGroupingSize()Obtain the grouping size.- Returns:
- the size
-
getGrouping
Obtain the grouping string.- Returns:
- the string
-
getMinusSign
protected char getMinusSign()Obtain the minus sign.- Returns:
- the sign
-
getPerCent
protected char getPerCent()Obtain the perCent sign.- Returns:
- the sign
-
getPerMille
protected char getPerMille()Obtain the perMille sign.- Returns:
- the sign
-
getDecimal
Obtain the decimal string.- Returns:
- the string
-
getMoneyDecimal
Obtain the grouping string.- Returns:
- the string
-
getDefaultCurrency
Obtain the default currency.- Returns:
- the currency
-
parseCurrencySymbol
Parse currency symbol.- Parameters:
pSymbol- the symbol- Returns:
- the currency
- Throws:
IllegalArgumentException- on invalid currency
-
getSymbol
Get currency symbol.- Parameters:
pCurrency- the currency- Returns:
- the symbol
-