Class LocalizedNumberFormatterAsFormat
java.lang.Object
java.text.Format
org.graalvm.shadowed.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 classes/interfaces inherited from class java.text.Format
Format.Field -
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.Methods inherited from class java.text.Format
clone, format, parseObject
-
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
-