NumberFormat.Field  |  API reference  |  Android Developers (original) (raw)


open class Field : Format.Field

kotlin.Any
java.text.AttributedCharacterIterator.Attribute
java.text.Format.Field

The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that NumberFormat.formatToCharacterIterator() method returns.

There is no public constructor to this class, the only instances are the constants defined here.

Summary

Protected constructors
Field(fieldName: String!) Constructs a new instance of NumberFormat.
Protected methods
open Any! readResolve() serizalization method resolve instances to the constant NumberFormat.
Properties
static NumberFormat.Field! APPROXIMATELY_SIGN Approximately sign.
static NumberFormat.Field! COMPACT
static NumberFormat.Field! CURRENCY
static NumberFormat.Field! DECIMAL_SEPARATOR
static NumberFormat.Field! EXPONENT
static NumberFormat.Field! EXPONENT_SIGN
static NumberFormat.Field! EXPONENT_SYMBOL
static NumberFormat.Field! FRACTION
static NumberFormat.Field! GROUPING_SEPARATOR
static NumberFormat.Field! INTEGER
static NumberFormat.Field! MEASURE_UNIT
static NumberFormat.Field! PERCENT
static NumberFormat.Field! PERMILLE
static NumberFormat.Field! SIGN

Protected constructors

Field

protected Field(fieldName: String!)

Constructs a new instance of NumberFormat.Field with the given field name.

Protected methods

readResolve

protected open fun readResolve(): Any!

serizalization method resolve instances to the constant NumberFormat.Field values

Return
Any! the resolved Attribute object
Exceptions
java.io.InvalidObjectException if the object to resolve is not an instance of Attribute

Properties

APPROXIMATELY_SIGN

static val APPROXIMATELY_SIGN: NumberFormat.Field!

Approximately sign. In ICU 70, this was categorized under the generic SIGN field.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.