Class LocalizedNumberFormatterAsFormat
java.lang.Object
java.text.Format
com.ibm.icu.impl.number.LocalizedNumberFormatterAsFormat
- All Implemented Interfaces:
Serializable, Cloneable
A wrapper around LocalizedNumberFormatter implementing the Format interface, enabling improved
compatibility with other APIs. This class is serializable.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classNested classes/interfaces inherited from class Format
Format.Field -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocalizedNumberFormatterprivate final ULocaleprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionLocalizedNumberFormatterAsFormat(LocalizedNumberFormatter formatter, ULocale locale) -
Method Summary
Modifier and TypeMethodDescriptionbooleanformat(Object obj, StringBuffer toAppendTo, FieldPosition pos) Formats a Number using the wrapped LocalizedNumberFormatter.Formats a Number using the wrapped LocalizedNumberFormatter.Gets the LocalizedNumberFormatter that this wrapper class uses to format numbers.inthashCode()parseObject(String source, ParsePosition pos) Not supported.private ObjectMethods inherited from class Format
clone, format, parseObject
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
formatter
-
locale
-
-
Constructor Details
-
LocalizedNumberFormatterAsFormat
-
-
Method Details
-
format
Formats a Number using the wrapped LocalizedNumberFormatter. The provided object must be a Number. -
formatToCharacterIterator
Formats a Number using the wrapped LocalizedNumberFormatter. The provided object must be a Number.- Overrides:
formatToCharacterIteratorin classFormat
-
parseObject
Not supported. This method will throw UnsupportedOperationException.- Specified by:
parseObjectin classFormat
-
getNumberFormatter
Gets the LocalizedNumberFormatter that this wrapper class uses to format numbers.- Returns:
- The unwrapped LocalizedNumberFormatter.
-
hashCode
-
equals
-
writeReplace
- Throws:
ObjectStreamException
-