다음을 통해 공유


DecimalFormatSymbols Class

Definition

<strong>[icu enhancement]</strong> ICU's replacement for java.text.DecimalFormatSymbols.

[Android.Runtime.Register("android/icu/text/DecimalFormatSymbols", ApiSince=24, DoNotGenerateAcw=true)]
public class DecimalFormatSymbols : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable, Java.Lang.ICloneable
[<Android.Runtime.Register("android/icu/text/DecimalFormatSymbols", ApiSince=24, DoNotGenerateAcw=true)>]
type DecimalFormatSymbols = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ICloneable
Inheritance
DecimalFormatSymbols
Attributes
Implements

Remarks

<strong>[icu enhancement]</strong> ICU's replacement for java.text.DecimalFormatSymbols.&nbsp;Methods, fields, and other functionality specific to ICU are labeled '<strong>[icu]</strong>'.

This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers. DecimalFormat creates for itself an instance of DecimalFormatSymbols from its locale data. If you need to change any of these symbols, you can get the DecimalFormatSymbols object from your DecimalFormat and modify it.

Java documentation for android.icu.text.DecimalFormatSymbols.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

DecimalFormatSymbols()

Creates a DecimalFormatSymbols object for the default FORMAT locale.

DecimalFormatSymbols(IntPtr, JniHandleOwnership)
DecimalFormatSymbols(Locale)

Creates a DecimalFormatSymbols object for the given locale.

DecimalFormatSymbols(ULocale)

<strong>[icu]</strong> Creates a DecimalFormatSymbols object for the given locale.

Fields

CurrencySpcCurrencyMatch
Obsolete.

<strong>[icu]</strong> Indicates the currency match pattern used in #getPatternForCurrencySpacing.

CurrencySpcInsert
Obsolete.

<strong>[icu]</strong> Indicates the insertion value used in #getPatternForCurrencySpacing.

CurrencySpcSurroundingMatch
Obsolete.

<strong>[icu]</strong> Indicates the surrounding match pattern used in #getPatternForCurrencySpacing.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Currency

Returns the currency symbol, for DecimalFormatSymbols#getCurrency() API compatibility only. -or- Sets the currency.

CurrencySymbol

Returns the string denoting the local currency. -or- Sets the string denoting the local currency.

DecimalSeparator

Returns the character used for decimal sign. -or- Sets the character used for decimal sign.

DecimalSeparatorString

<strong>[icu]</strong> Returns the string used for decimal sign. -or- <strong>[icu]</strong> Sets the string used for decimal sign.

Digit

Returns the character used for a digit in a pattern. -or- Sets the character used for a digit in a pattern.

ExponentMultiplicationSign

Returns the multiplication sign -or- Sets the multiplication sign

ExponentSeparator

<strong>[icu]</strong> Returns the string used to separate the mantissa from the exponent. -or- <strong>[icu]</strong> Sets the string used to separate the mantissa from the exponent.

GroupingSeparator

Returns the character used for grouping separator. -or- Sets the character used for grouping separator.

GroupingSeparatorString

<strong>[icu]</strong> Returns the string used for grouping separator. -or- <strong>[icu]</strong> Sets the string used for grouping separator.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
Infinity

Returns the String used to represent infinity. -or- Sets the String used to represent infinity.

Instance

Returns a DecimalFormatSymbols instance for the default locale.

InternationalCurrencySymbol

Returns the international string denoting the local currency. -or- Sets the international string denoting the local currency.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Locale

Returns the locale for which this object was constructed.

MinusSign

Returns the character used to represent minus sign. -or- Sets the character used to represent minus sign.

MinusSignString

<strong>[icu]</strong> Returns the string used to represent minus sign. -or- <strong>[icu]</strong> Sets the string used to represent minus sign.

MonetaryDecimalSeparator

Returns the monetary decimal separator. -or- Sets the monetary decimal separator.

MonetaryDecimalSeparatorString

<strong>[icu]</strong> Returns the monetary decimal separator string. -or- <strong>[icu]</strong> Sets the monetary decimal separator string.

MonetaryGroupingSeparator

<strong>[icu]</strong> Returns the monetary grouping separator. -or- <strong>[icu]</strong> Sets the monetary grouping separator.

MonetaryGroupingSeparatorString

<strong>[icu]</strong> Returns the monetary grouping separator. -or- <strong>[icu]</strong> Sets the monetary grouping separator string.

NaN

Returns the String used to represent NaN. -or- Sets the String used to represent NaN.

PadEscape

<strong>[icu]</strong> Returns the character used to pad numbers out to a specified width. -or- <strong>[icu]</strong> Sets the character used to pad numbers out to a specified width.

PatternSeparator

Returns the character used to separate positive and negative subpatterns in a pattern. -or- Sets the character used to separate positive and negative subpatterns in a pattern.

PeerReference (Inherited from Object)
Percent

Returns the character used for percent sign. -or- Sets the character used for percent sign.

PercentString

<strong>[icu]</strong> Returns the string used for percent sign. -or- <strong>[icu]</strong> Sets the string used for percent sign.

PerMill

Returns the character used for mille percent sign. -or- Sets the character used for mille percent sign.

PerMillString

<strong>[icu]</strong> Returns the string used for permille sign. -or- <strong>[icu]</strong> Sets the string used for permille sign.

PlusSign

<strong>[icu]</strong> Returns the localized plus sign. -or- <strong>[icu]</strong> Sets the localized plus sign.

PlusSignString

<strong>[icu]</strong> Returns the string used to represent plus sign. -or- <strong>[icu]</strong> Sets the localized plus sign string.

SignificantDigit

Returns the character used to represent a significant digit in a pattern. -or- Sets the character used to represent a significant digit in a pattern.

ThresholdClass
ThresholdType
ULocale

Returns the locale for which this object was constructed.

ZeroDigit

Returns the character used for zero. -or- Sets the character used for zero.

Methods

Clone()

To be added

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
ForNumberingSystem(Locale, NumberingSystem)

<strong>[icu]</strong> Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given NumberingSystem.

ForNumberingSystem(ULocale, NumberingSystem)

<strong>[icu]</strong> Returns a DecimalFormatSymbols instance for the given locale with digits and symbols corresponding to the given NumberingSystem.

GetAvailableLocales()

Returns an array of all locales for which the getInstance methods of this class can return localized instances.

GetAvailableULocales()

<strong>[icu]</strong> Returns an array of all locales for which the getInstance methods of this class can return localized instances.

GetDigits()

Returns the array of characters used as digits, in order from 0 through 9

GetDigitStrings()

<strong>[icu]</strong> Returns the array of strings used as digits, in order from 0 through 9

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetInstance(Locale)

Returns a DecimalFormatSymbols instance for the given locale.

GetInstance(ULocale)

Returns a DecimalFormatSymbols instance for the given locale.

GetPatternForCurrencySpacing(CurrencySpacing, Boolean)

<strong>[icu]</strong> Returns the desired currency spacing value.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetDigitStrings(String[])

<strong>[icu]</strong> Sets the array of strings used as digits, in order from 0 through 9

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPatternForCurrencySpacing(CurrencySpacing, Boolean, String)

<strong>[icu]</strong> Sets the indicated currency spacing pattern or value.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to