Class NumberFormat
public class NumberFormat : Format, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Format>NumberFormat
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Format>.IsAssignableFrom(IJavaType)JVMBridgeBase<Format>.IsAssignableFrom<T>()JVMBridgeBase<Format>.Execute<T>(params T[])JVMBridgeBase<Format>.DynBridgeClazzJVMBridgeBase<Format>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
NumberFormat()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("NumberFormat class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public NumberFormat()
NumberFormat(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("NumberFormat class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public NumberFormat(params object[] args)
Parameters
args
object[]
Properties
AvailableLocales
public static Locale[] AvailableLocales { get; }
Property Value
- Locale[]
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Currency
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#getCurrency() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#setCurrency(java.util.Currency)
public Currency Currency { get; set; }
Property Value
CurrencyInstance
public static NumberFormat CurrencyInstance { get; }
Property Value
FRACTION_FIELD
public static int FRACTION_FIELD { get; }
Property Value
INTEGER_FIELD
public static int INTEGER_FIELD { get; }
Property Value
Instance
public static NumberFormat Instance { get; }
Property Value
IntegerInstance
public static NumberFormat IntegerInstance { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
MaximumFractionDigits
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#getMaximumFractionDigits() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#setMaximumFractionDigits(int)
public int MaximumFractionDigits { get; set; }
Property Value
MaximumIntegerDigits
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#getMaximumIntegerDigits() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#setMaximumIntegerDigits(int)
public int MaximumIntegerDigits { get; set; }
Property Value
MinimumFractionDigits
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#getMinimumFractionDigits() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#setMinimumFractionDigits(int)
public int MinimumFractionDigits { get; set; }
Property Value
MinimumIntegerDigits
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#getMinimumIntegerDigits() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#setMinimumIntegerDigits(int)
public int MinimumIntegerDigits { get; set; }
Property Value
NumberInstance
public static NumberFormat NumberInstance { get; }
Property Value
PercentInstance
public static NumberFormat PercentInstance { get; }
Property Value
RoundingMode
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#getRoundingMode() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/NumberFormat.html#setRoundingMode(java.math.RoundingMode)
public RoundingMode RoundingMode { get; set; }
Property Value
Methods
Format(double)
public String Format(double arg0)
Parameters
Returns
Format(double, StringBuffer, FieldPosition)
public StringBuffer Format(double arg0, StringBuffer arg1, FieldPosition arg2)
Parameters
arg0
doublearg1
StringBufferarg2
FieldPosition
Returns
Format(long)
public String Format(long arg0)
Parameters
Returns
Format(long, StringBuffer, FieldPosition)
public StringBuffer Format(long arg0, StringBuffer arg1, FieldPosition arg2)
Parameters
arg0
longarg1
StringBufferarg2
FieldPosition
Returns
GetCurrencyInstance(Locale)
public static NumberFormat GetCurrencyInstance(Locale arg0)
Parameters
Returns
GetInstance(Locale)
public static NumberFormat GetInstance(Locale arg0)
Parameters
Returns
GetIntegerInstance(Locale)
public static NumberFormat GetIntegerInstance(Locale arg0)
Parameters
Returns
GetNumberInstance(Locale)
public static NumberFormat GetNumberInstance(Locale arg0)
Parameters
Returns
GetPercentInstance(Locale)
public static NumberFormat GetPercentInstance(Locale arg0)
Parameters
Returns
IsGroupingUsed()
public bool IsGroupingUsed()
Returns
IsParseIntegerOnly()
public bool IsParseIntegerOnly()
Returns
Parse(String)
public Number Parse(String arg0)
Parameters
Returns
Exceptions
Parse(String, ParsePosition)
public Number Parse(String arg0, ParsePosition arg1)
Parameters
arg0
Stringarg1
ParsePosition
Returns
SetGroupingUsed(bool)
public void SetGroupingUsed(bool arg0)
Parameters
SetParseIntegerOnly(bool)
public void SetParseIntegerOnly(bool arg0)