Added in API level 24

Field


open class Field : Format.Field
kotlin.Any
   ↳ java.text.AttributedCharacterIterator.Attribute
   ↳ java.text.Format.Field
   ↳ android.icu.text.NumberFormat.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!

serizalization method resolve instances to the constant NumberFormat.

Properties
static NumberFormat.Field!

Approximately sign.

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

static NumberFormat.Field!

Protected constructors

Field

Added in API level 24
protected Field(fieldName: String!)

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

Protected methods

readResolve

Added in API level 24
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

Added in API level 35
static val APPROXIMATELY_SIGN: NumberFormat.Field!

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

COMPACT

Added in API level 31
static val COMPACT: NumberFormat.Field!

CURRENCY

Added in API level 24
static val CURRENCY: NumberFormat.Field!

DECIMAL_SEPARATOR

Added in API level 24
static val DECIMAL_SEPARATOR: NumberFormat.Field!

EXPONENT

Added in API level 24
static val EXPONENT: NumberFormat.Field!

EXPONENT_SIGN

Added in API level 24
static val EXPONENT_SIGN: NumberFormat.Field!

EXPONENT_SYMBOL

Added in API level 24
static val EXPONENT_SYMBOL: NumberFormat.Field!

FRACTION

Added in API level 24
static val FRACTION: NumberFormat.Field!

GROUPING_SEPARATOR

Added in API level 24
static val GROUPING_SEPARATOR: NumberFormat.Field!

INTEGER

Added in API level 24
static val INTEGER: NumberFormat.Field!

MEASURE_UNIT

Added in API level 31
static val MEASURE_UNIT: NumberFormat.Field!

PERCENT

Added in API level 24
static val PERCENT: NumberFormat.Field!

PERMILLE

Added in API level 24
static val PERMILLE: NumberFormat.Field!

SIGN

Added in API level 24
static val SIGN: NumberFormat.Field!