Package org.robovm.apple.corefoundation
Class CFNumberFormatter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFNumberFormatter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFNumberFormatter extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFNumberFormatter.CFNumberFormatterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFNumberFormatter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CFNumberFormatter
create(CFAllocator allocator, CFLocale locale, CFNumberFormatterStyle style)
static CFNumberFormatter
create(CFLocale locale, CFNumberFormatterStyle style)
protected static java.lang.String
format(CFAllocator allocator, CFNumberFormatter formatter, CFNumber number)
java.lang.String
format(CFNumber number)
protected static java.lang.String
formatValue(CFAllocator allocator, CFNumberFormatter formatter, CFNumberType numberType, org.robovm.rt.bro.ptr.VoidPtr valuePtr)
static long
getClassTypeID()
static int
getDefaultFractionDigitsForCurrencyCode(java.lang.String currencyCode)
java.lang.String
getFormat()
CFLocale
getLocale()
CFType
getProperty(CFNumberFormatterProperty key)
static double
getRoundingIncrementForCurrencyCode(java.lang.String currencyCode)
CFNumberFormatterStyle
getStyle()
CFNumber
parse(java.lang.String string, CFRange rangep, CFNumberFormatterOptionFlags options)
protected static CFNumber
parse(CFAllocator allocator, CFNumberFormatter formatter, java.lang.String string, CFRange rangep, CFNumberFormatterOptionFlags options)
protected boolean
parseValue(java.lang.String string, CFRange rangep, CFNumberType numberType, org.robovm.rt.bro.ptr.VoidPtr valuePtr)
void
setFormat(java.lang.String formatString)
void
setProperty(CFNumberFormatterProperty key, CFType value)
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
create
public static CFNumberFormatter create(CFLocale locale, CFNumberFormatterStyle style)
-
format
public java.lang.String format(CFNumber number)
-
parse
public CFNumber parse(java.lang.String string, CFRange rangep, CFNumberFormatterOptionFlags options)
-
getDefaultFractionDigitsForCurrencyCode
public static int getDefaultFractionDigitsForCurrencyCode(java.lang.String currencyCode)
-
getRoundingIncrementForCurrencyCode
public static double getRoundingIncrementForCurrencyCode(java.lang.String currencyCode)
-
getClassTypeID
public static long getClassTypeID()
-
create
public static CFNumberFormatter create(CFAllocator allocator, CFLocale locale, CFNumberFormatterStyle style)
-
getLocale
public CFLocale getLocale()
-
getStyle
public CFNumberFormatterStyle getStyle()
-
getFormat
public java.lang.String getFormat()
-
setFormat
public void setFormat(java.lang.String formatString)
-
format
protected static java.lang.String format(CFAllocator allocator, CFNumberFormatter formatter, CFNumber number)
-
formatValue
protected static java.lang.String formatValue(CFAllocator allocator, CFNumberFormatter formatter, CFNumberType numberType, org.robovm.rt.bro.ptr.VoidPtr valuePtr)
-
parse
protected static CFNumber parse(CFAllocator allocator, CFNumberFormatter formatter, java.lang.String string, CFRange rangep, CFNumberFormatterOptionFlags options)
-
parseValue
protected boolean parseValue(java.lang.String string, CFRange rangep, CFNumberType numberType, org.robovm.rt.bro.ptr.VoidPtr valuePtr)
-
setProperty
public void setProperty(CFNumberFormatterProperty key, CFType value)
-
getProperty
public CFType getProperty(CFNumberFormatterProperty key)
-
-