com.ibm.icu.text
Class NumberFormat.SimpleNumberFormatFactory

java.lang.Object
  extended bycom.ibm.icu.text.NumberFormat.NumberFormatFactory
      extended bycom.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(java.util.Locale locale)
           
NumberFormat.SimpleNumberFormatFactory(java.util.Locale locale, boolean visible)
           
NumberFormat.SimpleNumberFormatFactory(ULocale locale)
           
NumberFormat.SimpleNumberFormatFactory(ULocale locale, boolean visible)
           
 
Method Summary
 java.util.Set 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(java.util.Locale locale)
Status:
Stable ICU 2.6.

NumberFormat.SimpleNumberFormatFactory

public NumberFormat.SimpleNumberFormatFactory(java.util.Locale locale,
                                              boolean visible)
Status:
Stable ICU 2.6.

NumberFormat.SimpleNumberFormatFactory

public NumberFormat.SimpleNumberFormatFactory(ULocale locale)
Status:
Draft ICU 3.2.

NumberFormat.SimpleNumberFormatFactory

public NumberFormat.SimpleNumberFormatFactory(ULocale locale,
                                              boolean visible)
Status:
Draft ICU 3.2.
Method Detail

visible

public final boolean visible()
Description copied from class: NumberFormat.NumberFormatFactory
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 java.util.Set getSupportedLocaleNames()
Description copied from class: NumberFormat.NumberFormatFactory
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) 2006 IBM Corporation and others.