* This API offers more features than DecimalFormat and is geared toward new users of ICU.
*
* <p>
- * NumberFormatter instances are immutable and thread safe. This means that invoking a configuration method has no
+ * NumberFormatter instances (i.e., LocalizedNumberFormatter and UnlocalizedNumberFormatter)
+ * are immutable and thread safe. This means that invoking a configuration method has no
* effect on the receiving instance; you must store and use the new number formatter instance it returns instead.
*
* <pre>
/**
* A NumberFormatter that does not yet have a locale. In order to format numbers, a locale must be specified.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @see NumberFormatter
* @draft ICU 60
*/
/**
* A NumberFormatter that has a locale associated with it; this means .format() methods are available.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @see NumberFormatter
* @draft ICU 60
*/
* The result of a number formatting operation. This class allows the result to be exported in several data types,
* including a UnicodeString and a FieldPositionIterator.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @draft ICU 60
*/
class U_I18N_API FormattedNumber : public UMemory, public FormattedValue {
* // => "750 m - 1.2 km"
* </pre>
* <p>
- * Like NumberFormatter, NumberRangeFormatter instances are immutable and thread-safe. This API is based on the
+ * Like NumberFormatter, NumberRangeFormatter instances (i.e., LocalizedNumberRangeFormatter
+ * and UnlocalizedNumberRangeFormatter) are immutable and thread-safe. This API is based on the
* <em>fluent</em> design pattern popularized by libraries such as Google's Guava.
*
* @author Shane Carr
/**
* A NumberRangeFormatter that does not yet have a locale. In order to format, a locale must be specified.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @see NumberRangeFormatter
* @draft ICU 63
*/
/**
* A NumberRangeFormatter that has a locale associated with it; this means .formatRange() methods are available.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @see NumberFormatter
* @draft ICU 63
*/
* The result of a number range formatting operation. This class allows the result to be exported in several data types,
* including a UnicodeString and a FieldPositionIterator.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @draft ICU 63
*/
class U_I18N_API FormattedNumberRange : public UMemory, public FormattedValue {
* The result of a number formatting operation. This class allows the result to be exported in several
* data types, including a String, an AttributedCharacterIterator, and a BigDecimal.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @draft ICU 60
* @provisional This API might change or be removed in a future release.
* @see NumberFormatter
* The result of a number range formatting operation. This class allows the result to be exported in several data types,
* including a String, an AttributedCharacterIterator, and a BigDecimal.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @author sffc
* @draft ICU 63
* @provisional This API might change or be removed in a future release.
/**
* A NumberFormatter that has a locale associated with it; this means .format() methods are available.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @see NumberFormatter
* @draft ICU 60
* @provisional This API might change or be removed in a future release.
/**
* A NumberRangeFormatter that has a locale associated with it; this means .formatRange() methods are available.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @author sffc
* @draft ICU 63
* @provisional This API might change or be removed in a future release.
* users of ICU.
*
* <p>
- * NumberFormatter instances are immutable and thread safe. This means that invoking a configuration
+ * NumberFormatter instances (i.e., LocalizedNumberFormatter and UnlocalizedNumberFormatter)
+ * are immutable and thread safe. This means that invoking a configuration
* method has no effect on the receiving instance; you must store and use the new number formatter
* instance it returns instead.
*
* // => "750 m - 1.2 km"
* </pre>
* <p>
- * Like NumberFormatter, NumberRangeFormatter instances are immutable and thread-safe. This API is based on the
+ * Like NumberFormatter, NumberRangeFormatter instances (i.e., LocalizedNumberRangeFormatter
+ * and UnlocalizedNumberRangeFormatter) are immutable and thread-safe. This API is based on the
* <em>fluent</em> design pattern popularized by libraries such as Google's Guava.
*
* @author sffc
* A NumberFormatter that does not yet have a locale. In order to format numbers, a locale must be
* specified.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @see NumberFormatter
* @draft ICU 60
* @provisional This API might change or be removed in a future release.
/**
* A NumberRangeFormatter that does not yet have a locale. In order to format, a locale must be specified.
*
+ * Instances of this class are immutable and thread-safe.
+ *
* @author sffc
* @draft ICU 63
* @provisional This API might change or be removed in a future release.