# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Fields | Methods | Inherited Methods

# DecimalStyle

`public final class DecimalStyle`
`extends Object` ``

java.lang.Object
↳ | java.time.format.DecimalStyle

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.

## Summary

### Fields
`public static final DecimalStyle` | `STANDARD` The standard set of non-localized decimal style symbols.

### Public methods
`boolean` | `equals(Object obj)` Checks if this DecimalStyle is equal to another DecimalStyle.
`static Set<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 this DecimalStyle.
`static DecimalStyle` | `of(Locale locale)` Obtains the DecimalStyle for the specified locale.
`static DecimalStyle` | `ofDefaultLocale()` Obtains the DecimalStyle for the default `FORMAT` locale.
`String` | `toString()` Returns a string describing this DecimalStyle.
`DecimalStyle` | `withDecimalSeparator(char decimalSeparator)` Returns a copy of the info with a new character that represents the decimal point.
`DecimalStyle` | `withNegativeSign(char negativeSign)` Returns a copy of the info with a new character that represents the negative sign.
`DecimalStyle` | `withPositiveSign(char positiveSign)` Returns a copy of the info with a new character that represents the positive sign.
`DecimalStyle` | `withZeroDigit(char zeroDigit)` Returns a copy of the info with a new character that represents zero.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Fields

### STANDARD

    public static final DecimalStyle STANDARD

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.

## Public methods

### equals

    public boolean equals (Object obj)

Checks if this DecimalStyle is equal to another DecimalStyle.

Parameters
`obj` | `Object`: the object to check, null returns false

Returns
`boolean` | true if this is equal to the other date

### getAvailableLocales

    public static Set<Locale> getAvailableLocales ()

Lists all the locales that are supported.

The locale 'en_US' will always be present.

Returns
`Set<Locale>` | a Set of Locales for which localization is supported

### getDecimalSeparator

    public char getDecimalSeparator ()

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
`char` | the character for the decimal point

### getNegativeSign

    public char getNegativeSign ()

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
`char` | the character for the negative sign

### getPositiveSign

    public char getPositiveSign ()

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
`char` | the character for the positive sign

### getZeroDigit

    public char getZeroDigit ()

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
`char` | the character for zero

### hashCode

    public int hashCode ()

A hash code for this DecimalStyle.

Returns
`int` | a suitable hash code

### of

    public static DecimalStyle of (Locale locale)

Obtains the DecimalStyle for the specified locale.

This method provides access to locale sensitive decimal style symbols.

Parameters
`locale` | `Locale`: the locale, not null

Returns
`DecimalStyle` | the decimal style, not null

### ofDefaultLocale

    public static DecimalStyle ofDefaultLocale ()

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
`DecimalStyle` | the decimal style, not null

See also:

- `Locale.Category.FORMAT`

### toString

    public String toString ()

Returns a string describing this DecimalStyle.

Returns
`String` | a string description, not null

### withDecimalSeparator

    public DecimalStyle withDecimalSeparator (char decimalSeparator)

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.

Parameters
`decimalSeparator` | `char`: the character for the decimal point

Returns
`DecimalStyle` | a copy with a new character that represents the decimal point, not null

### withNegativeSign

    public DecimalStyle withNegativeSign (char negativeSign)

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.

Parameters
`negativeSign` | `char`: the character for the negative sign

Returns
`DecimalStyle` | a copy with a new character that represents the negative sign, not null

### withPositiveSign

    public DecimalStyle withPositiveSign (char positiveSign)

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.

Parameters
`positiveSign` | `char`: the character for the positive sign

Returns
`DecimalStyle` | a copy with a new character that represents the positive sign, not null

### withZeroDigit

    public DecimalStyle withZeroDigit (char zeroDigit)

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.

Parameters
`zeroDigit` | `char`: the character for zero

Returns
`DecimalStyle` | a copy with a new character that represents zero, not null

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*