com.ibm.icu.text
Class NumberFormat.SimpleNumberFormatFactory

java.lang.Object
  extended by com.ibm.icu.text.NumberFormat.NumberFormatFactory
      extended by com.ibm.icu.text.NumberFormat.SimpleNumberFormatFactory
Enclosing class:
NumberFormat

public abstract static class NumberFormat.SimpleNumberFormatFactory
extends NumberFormat.NumberFormatFactory

A NumberFormatFactory that supports a single locale. It can be visible or invisible.

Status:
Stable ICU 2.6.

Field Summary
 
Fields inherited from class com.ibm.icu.text.NumberFormat.NumberFormatFactory
FORMAT_CURRENCY, FORMAT_INTEGER, FORMAT_NUMBER, FORMAT_PERCENT, FORMAT_SCIENTIFIC
 
Constructor Summary
NumberFormat.SimpleNumberFormatFactory(Locale locale)
          Constructs a SimpleNumberFormatFactory with the given locale.
NumberFormat.SimpleNumberFormatFactory(Locale locale, boolean visible)
          Constructs a SimpleNumberFormatFactory with the given locale and the visibility.
NumberFormat.SimpleNumberFormatFactory(ULocale locale)
          Constructs a SimpleNumberFormatFactory with the given locale.
NumberFormat.SimpleNumberFormatFactory(ULocale locale, boolean visible)
          Constructs a SimpleNumberFormatFactory with the given locale and the visibility.
 
Method Summary
 Set<String> getSupportedLocaleNames()
          Returns an immutable collection of the locale names directly supported by this factory.
 boolean visible()
          Returns true if this factory is visible.
 
Methods inherited from class com.ibm.icu.text.NumberFormat.NumberFormatFactory
createFormat, createFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormat.SimpleNumberFormatFactory

public NumberFormat.SimpleNumberFormatFactory(Locale locale)
Constructs a SimpleNumberFormatFactory with the given locale.

Status:
Stable ICU 2.6.

NumberFormat.SimpleNumberFormatFactory

public NumberFormat.SimpleNumberFormatFactory(Locale locale,
                                              boolean visible)
Constructs a SimpleNumberFormatFactory with the given locale and the visibility.

Status:
Stable ICU 2.6.

NumberFormat.SimpleNumberFormatFactory

public NumberFormat.SimpleNumberFormatFactory(ULocale locale)
Constructs a SimpleNumberFormatFactory with the given locale.

Status:
Stable ICU 3.2.

NumberFormat.SimpleNumberFormatFactory

public NumberFormat.SimpleNumberFormatFactory(ULocale locale,
                                              boolean visible)
Constructs a SimpleNumberFormatFactory with the given locale and the visibility.

Status:
Stable ICU 3.2.
Method Detail

visible

public final boolean visible()
Returns true if this factory is visible. Default is true. If not visible, the locales supported by this factory will not be listed by getAvailableLocales. This value must not change.

Overrides:
visible in class NumberFormat.NumberFormatFactory
Returns:
true if the factory is visible.
Status:
Stable ICU 2.6.

getSupportedLocaleNames

public final Set<String> getSupportedLocaleNames()
Returns an immutable collection of the locale names directly supported by this factory.

Specified by:
getSupportedLocaleNames in class NumberFormat.NumberFormatFactory
Returns:
the supported locale names.
Status:
Stable ICU 2.6.


Copyright (c) 2011 IBM Corporation and others.