Class NSNumberFormatter

All Implemented Interfaces:
NSCoding, NSObjectProtocol, ObjCProtocol

public class NSNumberFormatter
extends NSFormatter
  • Constructor Details

    • NSNumberFormatter

      public NSNumberFormatter()
    • NSNumberFormatter

      protected NSNumberFormatter​(NSObject.Handle h, long handle)
    • NSNumberFormatter

      protected NSNumberFormatter​(NSObject.SkipInit skipInit)
  • Method Details

    • getTextAttributesForNegativeValues

      public NSAttributedStringAttributes getTextAttributesForNegativeValues()
    • getTextMarkupAttributesForNegativeValues

      public CMTextMarkupAttributes getTextMarkupAttributesForNegativeValues()
    • getCoreTextAttributesForNegativeValues

      public CTAttributedStringAttributes getCoreTextAttributesForNegativeValues()
    • setTextAttributesForNegativeValues

      public void setTextAttributesForNegativeValues​(NSAttributedStringAttributes v)
    • setTextMarkupAttributesForNegativeValues

      public void setTextMarkupAttributesForNegativeValues​(CMTextMarkupAttributes v)
    • setCoreTextAttributesForNegativeValues

      public void setCoreTextAttributesForNegativeValues​(CTAttributedStringAttributes v)
    • getTextAttributesForPositiveValues

      public NSAttributedStringAttributes getTextAttributesForPositiveValues()
    • getTextMarkupAttributesForPositiveValues

      public CMTextMarkupAttributes getTextMarkupAttributesForPositiveValues()
    • getCoreTextAttributesForPositiveValues

      public CTAttributedStringAttributes getCoreTextAttributesForPositiveValues()
    • setTextAttributesForPositiveValues

      public void setTextAttributesForPositiveValues​(NSAttributedStringAttributes v)
    • setTextMarkupAttributesForPositiveValues

      public void setTextMarkupAttributesForPositiveValues​(CMTextMarkupAttributes v)
    • setCoreTextAttributesForPositiveValues

      public void setCoreTextAttributesForPositiveValues​(CTAttributedStringAttributes v)
    • getTextAttributesForZero

      public NSAttributedStringAttributes getTextAttributesForZero()
    • getTextMarkupAttributesForZero

      public CMTextMarkupAttributes getTextMarkupAttributesForZero()
    • getCoreTextAttributesForZero

      public CTAttributedStringAttributes getCoreTextAttributesForZero()
    • setTextAttributesForZero

      public void setTextAttributesForZero​(NSAttributedStringAttributes v)
    • setTextMarkupAttributesForZero

      public void setTextMarkupAttributesForZero​(CMTextMarkupAttributes v)
    • setCoreTextAttributesForZero

      public void setCoreTextAttributesForZero​(CTAttributedStringAttributes v)
    • getTextAttributesForNull

      public NSAttributedStringAttributes getTextAttributesForNull()
    • getTextMarkupAttributesForNull

      public CMTextMarkupAttributes getTextMarkupAttributesForNull()
    • getCoreTextAttributesForNull

      public CTAttributedStringAttributes getCoreTextAttributesForNull()
    • setTextAttributesForNull

      public void setTextAttributesForNull​(NSAttributedStringAttributes v)
    • setTextMarkupAttributesForNull

      public void setTextMarkupAttributesForNull​(CMTextMarkupAttributes v)
    • setCoreTextAttributesForNull

      public void setCoreTextAttributesForNull​(CTAttributedStringAttributes v)
    • getTextAttributesForNaN

      public NSAttributedStringAttributes getTextAttributesForNaN()
    • getTextMarkupAttributesForNaN

      public CMTextMarkupAttributes getTextMarkupAttributesForNaN()
    • getCoreTextAttributesForNaN

      public CTAttributedStringAttributes getCoreTextAttributesForNaN()
    • setTextAttributesForNaN

      public void setTextAttributesForNaN​(NSAttributedStringAttributes v)
    • setTextMarkupAttributesForNaN

      public void setTextMarkupAttributesForNaN​(CMTextMarkupAttributes v)
    • setCoreTextAttributesForNaN

      public void setCoreTextAttributesForNaN​(CTAttributedStringAttributes v)
    • getTextAttributesForPositiveInfinity

      public NSAttributedStringAttributes getTextAttributesForPositiveInfinity()
    • getTextMarkupAttributesForPositiveInfinity

      public CMTextMarkupAttributes getTextMarkupAttributesForPositiveInfinity()
    • getCoreTextAttributesForPositiveInfinity

      public CTAttributedStringAttributes getCoreTextAttributesForPositiveInfinity()
    • setTextAttributesForPositiveInfinity

      public void setTextAttributesForPositiveInfinity​(NSAttributedStringAttributes v)
    • setTextMarkupAttributesForPositiveInfinity

      public void setTextMarkupAttributesForPositiveInfinity​(CMTextMarkupAttributes v)
    • setCoreTextAttributesForPositiveInfinity

      public void setCoreTextAttributesForPositiveInfinity​(CTAttributedStringAttributes v)
    • getTextAttributesForNegativeInfinity

      public NSAttributedStringAttributes getTextAttributesForNegativeInfinity()
    • getTextMarkupAttributesForNegativeInfinity

      public CMTextMarkupAttributes getTextMarkupAttributesForNegativeInfinity()
    • getCoreTextAttributesForNegativeInfinity

      public CTAttributedStringAttributes getCoreTextAttributesForNegativeInfinity()
    • setTextAttributesForNegativeInfinity

      public void setTextAttributesForNegativeInfinity​(NSAttributedStringAttributes v)
    • setTextMarkupAttributesForNegativeInfinity

      public void setTextMarkupAttributesForNegativeInfinity​(CMTextMarkupAttributes v)
    • setCoreTextAttributesForNegativeInfinity

      public void setCoreTextAttributesForNegativeInfinity​(CTAttributedStringAttributes v)
    • getFormattingContext

      public NSFormattingContext getFormattingContext()
    • setFormattingContext

      public void setFormattingContext​(NSFormattingContext v)
    • getNumberStyle

      public NSNumberFormatterStyle getNumberStyle()
    • setNumberStyle

      public void setNumberStyle​(NSNumberFormatterStyle v)
    • getLocale

      public NSLocale getLocale()
    • setLocale

      public void setLocale​(NSLocale v)
    • generatesDecimalNumbers

      public boolean generatesDecimalNumbers()
    • setGeneratesDecimalNumbers

      public void setGeneratesDecimalNumbers​(boolean v)
    • getFormatterBehavior

      public NSNumberFormatterBehavior getFormatterBehavior()
    • setFormatterBehavior

      public void setFormatterBehavior​(NSNumberFormatterBehavior v)
    • getNegativeFormat

      public String getNegativeFormat()
    • setNegativeFormat

      public void setNegativeFormat​(String v)
    • getTextAttributesDictionaryForNegativeValues

      public NSDictionary<?,​?> getTextAttributesDictionaryForNegativeValues()
    • setTextAttributesDictionaryForNegativeValues

      public void setTextAttributesDictionaryForNegativeValues​(NSDictionary<?,​?> v)
    • getPositiveFormat

      public String getPositiveFormat()
    • setPositiveFormat

      public void setPositiveFormat​(String v)
    • getTextAttributesDictionaryForPositiveValues

      public NSDictionary<?,​?> getTextAttributesDictionaryForPositiveValues()
    • setTextAttributesDictionaryForPositiveValues

      public void setTextAttributesDictionaryForPositiveValues​(NSDictionary<?,​?> v)
    • allowsFloats

      public boolean allowsFloats()
    • setAllowsFloats

      public void setAllowsFloats​(boolean v)
    • getDecimalSeparator

      public String getDecimalSeparator()
    • setDecimalSeparator

      public void setDecimalSeparator​(String v)
    • alwaysShowsDecimalSeparator

      public boolean alwaysShowsDecimalSeparator()
    • setAlwaysShowsDecimalSeparator

      public void setAlwaysShowsDecimalSeparator​(boolean v)
    • getCurrencyDecimalSeparator

      public String getCurrencyDecimalSeparator()
    • setCurrencyDecimalSeparator

      public void setCurrencyDecimalSeparator​(String v)
    • usesGroupingSeparator

      public boolean usesGroupingSeparator()
    • setUsesGroupingSeparator

      public void setUsesGroupingSeparator​(boolean v)
    • getGroupingSeparator

      public String getGroupingSeparator()
    • setGroupingSeparator

      public void setGroupingSeparator​(String v)
    • getZeroSymbol

      public String getZeroSymbol()
    • setZeroSymbol

      public void setZeroSymbol​(String v)
    • getTextAttributesDictionaryForZero

      public NSDictionary<?,​?> getTextAttributesDictionaryForZero()
    • setTextAttributesDictionaryForZero

      public void setTextAttributesDictionaryForZero​(NSDictionary<?,​?> v)
    • getNullSymbol

      public String getNullSymbol()
    • setNullSymbol

      public void setNullSymbol​(String v)
    • getTextAttributesDictionaryForNull

      public NSDictionary<?,​?> getTextAttributesDictionaryForNull()
    • setTextAttributesDictionaryForNull

      public void setTextAttributesDictionaryForNull​(NSDictionary<?,​?> v)
    • getNaNSymbol

      public String getNaNSymbol()
    • setNaNSymbol

      public void setNaNSymbol​(String v)
    • getTextAttributesDictionaryForNaN

      public NSDictionary<?,​?> getTextAttributesDictionaryForNaN()
    • setTextAttributesDictionaryForNaN

      public void setTextAttributesDictionaryForNaN​(NSDictionary<?,​?> v)
    • getPositiveInfinitySymbol

      public String getPositiveInfinitySymbol()
    • setPositiveInfinitySymbol

      public void setPositiveInfinitySymbol​(String v)
    • getTextAttributesDictionaryForPositiveInfinity

      public NSDictionary<?,​?> getTextAttributesDictionaryForPositiveInfinity()
    • setTextAttributesDictionaryForPositiveInfinity

      public void setTextAttributesDictionaryForPositiveInfinity​(NSDictionary<?,​?> v)
    • getNegativeInfinitySymbol

      public String getNegativeInfinitySymbol()
    • setNegativeInfinitySymbol

      public void setNegativeInfinitySymbol​(String v)
    • getTextAttributesDictionaryForNegativeInfinity

      public NSDictionary<?,​?> getTextAttributesDictionaryForNegativeInfinity()
    • setTextAttributesDictionaryForNegativeInfinity

      public void setTextAttributesDictionaryForNegativeInfinity​(NSDictionary<?,​?> v)
    • getPositivePrefix

      public String getPositivePrefix()
    • setPositivePrefix

      public void setPositivePrefix​(String v)
    • getPositiveSuffix

      public String getPositiveSuffix()
    • setPositiveSuffix

      public void setPositiveSuffix​(String v)
    • getNegativePrefix

      public String getNegativePrefix()
    • setNegativePrefix

      public void setNegativePrefix​(String v)
    • getNegativeSuffix

      public String getNegativeSuffix()
    • setNegativeSuffix

      public void setNegativeSuffix​(String v)
    • getCurrencyCode

      public String getCurrencyCode()
    • setCurrencyCode

      public void setCurrencyCode​(String v)
    • getCurrencySymbol

      public String getCurrencySymbol()
    • setCurrencySymbol

      public void setCurrencySymbol​(String v)
    • getInternationalCurrencySymbol

      public String getInternationalCurrencySymbol()
    • setInternationalCurrencySymbol

      public void setInternationalCurrencySymbol​(String v)
    • getPercentSymbol

      public String getPercentSymbol()
    • setPercentSymbol

      public void setPercentSymbol​(String v)
    • getPerMillSymbol

      public String getPerMillSymbol()
    • setPerMillSymbol

      public void setPerMillSymbol​(String v)
    • getMinusSign

      public String getMinusSign()
    • setMinusSign

      public void setMinusSign​(String v)
    • getPlusSign

      public String getPlusSign()
    • setPlusSign

      public void setPlusSign​(String v)
    • getExponentSymbol

      public String getExponentSymbol()
    • setExponentSymbol

      public void setExponentSymbol​(String v)
    • getGroupingSize

      public long getGroupingSize()
    • setGroupingSize

      public void setGroupingSize​(long v)
    • getSecondaryGroupingSize

      public long getSecondaryGroupingSize()
    • setSecondaryGroupingSize

      public void setSecondaryGroupingSize​(long v)
    • getMultiplier

      public NSNumber getMultiplier()
    • setMultiplier

      public void setMultiplier​(NSNumber v)
    • getFormatWidth

      public long getFormatWidth()
    • setFormatWidth

      public void setFormatWidth​(long v)
    • getPaddingCharacter

      public String getPaddingCharacter()
    • setPaddingCharacter

      public void setPaddingCharacter​(String v)
    • getPaddingPosition

      public NSNumberFormatterPadPosition getPaddingPosition()
    • setPaddingPosition

      public void setPaddingPosition​(NSNumberFormatterPadPosition v)
    • getRoundingMode

      public NSNumberFormatterRoundingMode getRoundingMode()
    • setRoundingMode

      public void setRoundingMode​(NSNumberFormatterRoundingMode v)
    • getRoundingIncrement

      public NSNumber getRoundingIncrement()
    • setRoundingIncrement

      public void setRoundingIncrement​(NSNumber v)
    • getMinimumIntegerDigits

      public long getMinimumIntegerDigits()
    • setMinimumIntegerDigits

      public void setMinimumIntegerDigits​(long v)
    • getMaximumIntegerDigits

      public long getMaximumIntegerDigits()
    • setMaximumIntegerDigits

      public void setMaximumIntegerDigits​(long v)
    • getMinimumFractionDigits

      public long getMinimumFractionDigits()
    • setMinimumFractionDigits

      public void setMinimumFractionDigits​(long v)
    • getMaximumFractionDigits

      public long getMaximumFractionDigits()
    • setMaximumFractionDigits

      public void setMaximumFractionDigits​(long v)
    • getMinimum

      public NSNumber getMinimum()
    • setMinimum

      public void setMinimum​(NSNumber v)
    • getMaximum

      public NSNumber getMaximum()
    • setMaximum

      public void setMaximum​(NSNumber v)
    • getCurrencyGroupingSeparator

      public String getCurrencyGroupingSeparator()
    • setCurrencyGroupingSeparator

      public void setCurrencyGroupingSeparator​(String v)
    • isLenient

      public boolean isLenient()
    • setLenient

      public void setLenient​(boolean v)
    • usesSignificantDigits

      public boolean usesSignificantDigits()
    • setUsesSignificantDigits

      public void setUsesSignificantDigits​(boolean v)
    • getMinimumSignificantDigits

      public long getMinimumSignificantDigits()
    • setMinimumSignificantDigits

      public void setMinimumSignificantDigits​(long v)
    • getMaximumSignificantDigits

      public long getMaximumSignificantDigits()
    • setMaximumSignificantDigits

      public void setMaximumSignificantDigits​(long v)
    • isPartialStringValidationEnabled

      public boolean isPartialStringValidationEnabled()
    • setPartialStringValidationEnabled

      public void setPartialStringValidationEnabled​(boolean v)
    • format

      public String format​(Number number)
    • format

      public String format​(NSNumber number)
    • parse

      public NSNumber parse​(String string)
    • formatLocalized

      public static String formatLocalized​(NSNumber num, NSNumberFormatterStyle nstyle)
    • getDefaultFormatterBehavior

      public static NSNumberFormatterBehavior getDefaultFormatterBehavior()
    • setDefaultFormatterBehavior

      public static void setDefaultFormatterBehavior​(NSNumberFormatterBehavior behavior)