public static final DecimalStyle STANDARD
This uses standard ASCII characters for zero, positive, negative and a dot for the decimal point.
public static Set<Locale> getAvailableLocales()
The locale 'en_US' will always be present.
public static DecimalStyle ofDefaultLocale()
Locale.Category.FORMAT
public static DecimalStyle of(Locale locale)
This method provides access to locale sensitive decimal style symbols. If the locale contains "nu" (Numbering System) and/or "rg" (Region Override) Unicode extensions, returned instance will reflect the values specified with those extensions. If both "nu" and "rg" are specified, the value from the "nu" extension supersedes the implicit one from the "rg" extension.
locale
- the locale, not null
public char getZeroDigit()
The character used to represent digits may vary by culture. This method specifies the zero character to use, which implies the characters for one to nine.
public DecimalStyle withZeroDigit(char zeroDigit)
The character used to represent digits may vary by culture. This method specifies the zero character to use, which implies the characters for one to nine.
zeroDigit
- the character for zero
public char getPositiveSign()
The character used to represent a positive number may vary by culture. This method specifies the character to use.
public DecimalStyle withPositiveSign(char positiveSign)
The character used to represent a positive number may vary by culture. This method specifies the character to use.
positiveSign
- the character for the positive sign
public char getNegativeSign()
The character used to represent a negative number may vary by culture. This method specifies the character to use.
public DecimalStyle withNegativeSign(char negativeSign)
The character used to represent a negative number may vary by culture. This method specifies the character to use.
negativeSign
- the character for the negative sign
public char getDecimalSeparator()
The character used to represent a decimal point may vary by culture. This method specifies the character to use.
public DecimalStyle withDecimalSeparator(char decimalSeparator)
The character used to represent a decimal point may vary by culture. This method specifies the character to use.
decimalSeparator
- the character for the decimal point
public boolean equals(Object obj)
Checks if this DecimalStyle is equal to another DecimalStyle.
equals
in class Object
obj
- the object to check, null returns false
Object.hashCode()
, HashMap
public int hashCode()
A hash code for this DecimalStyle.
hashCode
in class Object
Object.equals(java.lang.Object)
, System.identityHashCode(java.lang.Object)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4