|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.time.calendar.format.DateTimeFormatSymbols
public final class DateTimeFormatSymbols
Localized symbols used in date and time formatting.
A significant part of dealing with dates and times is the localization. This class acts as a central point for accessing the information.
This class is immutable and thread-safe.
Field Summary | |
---|---|
static DateTimeFormatSymbols |
STANDARD
The standard set of non-localized symbols. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Checks if these symbols equal another set of symbols. |
static java.util.Locale[] |
getAvailableLocales()
Lists all the locales that are supported. |
char |
getDecimalSeparator()
Gets the character that represents the decimal point. |
char |
getNegativeSign()
Gets the character that represents the negative sign. |
char |
getPositiveSign()
Gets the character that represents the positive sign. |
char |
getZeroDigit()
Gets the character that represents zero. |
int |
hashCode()
A hash code for these symbols. |
static DateTimeFormatSymbols |
of(java.util.Locale locale)
Obtains symbols for the specified locale. |
static DateTimeFormatSymbols |
ofDefaultLocale()
Obtains symbols for the default locale. |
java.lang.String |
toString()
Returns a string describing these symbols. |
DateTimeFormatSymbols |
withDecimalSeparator(char decimalSeparator)
Returns a copy of the info with a new character that represents the decimal point. |
DateTimeFormatSymbols |
withNegativeSign(char negativeSign)
Returns a copy of the info with a new character that represents the negative sign. |
DateTimeFormatSymbols |
withPositiveSign(char positiveSign)
Returns a copy of the info with a new character that represents the positive sign. |
DateTimeFormatSymbols |
withZeroDigit(char zeroDigit)
Returns a copy of the info with a new character that represents zero. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DateTimeFormatSymbols STANDARD
This uses standard ASCII characters for zero, positive, negative and a dot for the decimal point.
Method Detail |
---|
public static java.util.Locale[] getAvailableLocales()
The locale 'en_US' will always be present.
public static DateTimeFormatSymbols ofDefaultLocale()
This method provides access to locale sensitive symbols.
public static DateTimeFormatSymbols of(java.util.Locale locale)
This method provides access to locale sensitive symbols.
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 DateTimeFormatSymbols 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 zeropublic char getPositiveSign()
The character used to represent a positive number may vary by culture. This method specifies the character to use.
public DateTimeFormatSymbols 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 signpublic char getNegativeSign()
The character used to represent a negative number may vary by culture. This method specifies the character to use.
public DateTimeFormatSymbols 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 signpublic char getDecimalSeparator()
The character used to represent a decimal point may vary by culture. This method specifies the character to use.
public DateTimeFormatSymbols 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 pointpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to check, null returns false
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |