Localized decimal style 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.
Localized decimal style 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.
Static Constant.
The standard set of non-localized decimal style symbols.
This uses standard ASCII characters for zero, positive, negative and a dot for the decimal point.
type: java.time.format.DecimalStyle
Static Constant. The standard set of non-localized decimal style symbols. This uses standard ASCII characters for zero, positive, negative and a dot for the decimal point. type: java.time.format.DecimalStyle
(*get-available-locales)
Lists all the locales that are supported.
The locale 'en_US' will always be present.
returns: a Set of Locales for which localization is supported - java.util.Set<java.util.Locale>
Lists all the locales that are supported. The locale 'en_US' will always be present. returns: a Set of Locales for which localization is supported - `java.util.Set<java.util.Locale>`
(*of locale)
Obtains the DecimalStyle for the specified locale.
This method provides access to locale sensitive decimal style symbols.
locale - the locale, not null - java.util.Locale
returns: the decimal style, not null - java.time.format.DecimalStyle
Obtains the DecimalStyle for the specified locale. This method provides access to locale sensitive decimal style symbols. locale - the locale, not null - `java.util.Locale` returns: the decimal style, not null - `java.time.format.DecimalStyle`
(*of-default-locale)
Obtains the DecimalStyle for the default FORMAT locale.
This method provides access to locale sensitive decimal style symbols.
This is equivalent to calling of(Locale.getDefault(Locale.Category.FORMAT)).
returns: the decimal style, not null - java.time.format.DecimalStyle
Obtains the DecimalStyle for the default FORMAT locale. This method provides access to locale sensitive decimal style symbols. This is equivalent to calling of(Locale.getDefault(Locale.Category.FORMAT)). returns: the decimal style, not null - `java.time.format.DecimalStyle`
(equals this obj)
Checks if this DecimalStyle is equal to another DecimalStyle.
obj - the object to check, null returns false - java.lang.Object
returns: true if this is equal to the other date - boolean
Checks if this DecimalStyle is equal to another DecimalStyle. obj - the object to check, null returns false - `java.lang.Object` returns: true if this is equal to the other date - `boolean`
(get-decimal-separator this)
Gets the character that represents the decimal point.
The character used to represent a decimal point may vary by culture. This method specifies the character to use.
returns: the character for the decimal point - char
Gets the character that represents the decimal point. The character used to represent a decimal point may vary by culture. This method specifies the character to use. returns: the character for the decimal point - `char`
(get-negative-sign this)
Gets the character that represents the negative sign.
The character used to represent a negative number may vary by culture. This method specifies the character to use.
returns: the character for the negative sign - char
Gets the character that represents the negative sign. The character used to represent a negative number may vary by culture. This method specifies the character to use. returns: the character for the negative sign - `char`
(get-positive-sign this)
Gets the character that represents the positive sign.
The character used to represent a positive number may vary by culture. This method specifies the character to use.
returns: the character for the positive sign - char
Gets the character that represents the positive sign. The character used to represent a positive number may vary by culture. This method specifies the character to use. returns: the character for the positive sign - `char`
(get-zero-digit this)
Gets the character that represents zero.
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.
returns: the character for zero - char
Gets the character that represents zero. 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. returns: the character for zero - `char`
(hash-code this)
A hash code for this DecimalStyle.
returns: a suitable hash code - int
A hash code for this DecimalStyle. returns: a suitable hash code - `int`
(to-string this)
Returns a string describing this DecimalStyle.
returns: a string description, not null - java.lang.String
Returns a string describing this DecimalStyle. returns: a string description, not null - `java.lang.String`
(with-decimal-separator this decimal-separator)
Returns a copy of the info with a new character that represents the decimal point.
The character used to represent a decimal point may vary by culture. This method specifies the character to use.
decimal-separator - the character for the decimal point - char
returns: a copy with a new character that represents the decimal point, not null - java.time.format.DecimalStyle
Returns a copy of the info with a new character that represents the decimal point. The character used to represent a decimal point may vary by culture. This method specifies the character to use. decimal-separator - the character for the decimal point - `char` returns: a copy with a new character that represents the decimal point, not null - `java.time.format.DecimalStyle`
(with-negative-sign this negative-sign)
Returns a copy of the info with a new character that represents the negative sign.
The character used to represent a negative number may vary by culture. This method specifies the character to use.
negative-sign - the character for the negative sign - char
returns: a copy with a new character that represents the negative sign, not null - java.time.format.DecimalStyle
Returns a copy of the info with a new character that represents the negative sign. The character used to represent a negative number may vary by culture. This method specifies the character to use. negative-sign - the character for the negative sign - `char` returns: a copy with a new character that represents the negative sign, not null - `java.time.format.DecimalStyle`
(with-positive-sign this positive-sign)
Returns a copy of the info with a new character that represents the positive sign.
The character used to represent a positive number may vary by culture. This method specifies the character to use.
positive-sign - the character for the positive sign - char
returns: a copy with a new character that represents the positive sign, not null - java.time.format.DecimalStyle
Returns a copy of the info with a new character that represents the positive sign. The character used to represent a positive number may vary by culture. This method specifies the character to use. positive-sign - the character for the positive sign - `char` returns: a copy with a new character that represents the positive sign, not null - `java.time.format.DecimalStyle`
(with-zero-digit this zero-digit)
Returns a copy of the info with a new character that represents zero.
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.
zero-digit - the character for zero - char
returns: a copy with a new character that represents zero, not null - java.time.format.DecimalStyle
Returns a copy of the info with a new character that represents zero. 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. zero-digit - the character for zero - `char` returns: a copy with a new character that represents zero, not null - `java.time.format.DecimalStyle`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close