java.lang.Object
io.github.tonywasher.joceanus.oceanus.decimal.OceanusDecimalLocale

public class OceanusDecimalLocale extends Object
Locale constants.
  • Constructor Details

    • OceanusDecimalLocale

      protected OceanusDecimalLocale()
      Constructor.
    • OceanusDecimalLocale

      protected OceanusDecimalLocale(Locale pLocale)
      Constructor.
      Parameters:
      pLocale - the locale
  • Method Details

    • getGroupingSize

      protected int getGroupingSize()
      Obtain the grouping size.
      Returns:
      the size
    • getGrouping

      protected String 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

      protected String getDecimal()
      Obtain the decimal string.
      Returns:
      the string
    • getMoneyDecimal

      protected String getMoneyDecimal()
      Obtain the grouping string.
      Returns:
      the string
    • getDefaultCurrency

      protected Currency getDefaultCurrency()
      Obtain the default currency.
      Returns:
      the currency
    • parseCurrencySymbol

      protected Currency parseCurrencySymbol(String pSymbol)
      Parse currency symbol.
      Parameters:
      pSymbol - the symbol
      Returns:
      the currency
      Throws:
      IllegalArgumentException - on invalid currency
    • getSymbol

      protected String getSymbol(Currency pCurrency)
      Get currency symbol.
      Parameters:
      pCurrency - the currency
      Returns:
      the symbol