Added in API level 1

Field

open class Field : Format.Field
kotlin.Any
   ↳ java.text.AttributedCharacterIterator.Attribute
   ↳ java.text.Format.Field
   ↳ java.text.NumberFormat.Field

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from NumberFormat.formatToCharacterIterator and as field identifiers in FieldPosition.

Summary

Protected constructors
Field(name: String)

Creates a Field instance with the specified name.

Protected methods
open Any

Resolves instances being deserialized to the predefined constants.

Properties
static NumberFormat.Field

Constant identifying the currency field.

static NumberFormat.Field

Constant identifying the decimal separator field.

static NumberFormat.Field

Constant identifying the exponent field.

static NumberFormat.Field

Constant identifying the exponent sign field.

static NumberFormat.Field

Constant identifying the exponent symbol field.

static NumberFormat.Field

Constant identifying the fraction field.

static NumberFormat.Field

Constant identifying the grouping separator field.

static NumberFormat.Field

Constant identifying the integer field.

static NumberFormat.Field

Constant identifying the percent field.

static NumberFormat.Field

Constant identifying the permille field.

static NumberFormat.Field

Constant identifying the sign field.

Protected constructors

Field

Added in API level 1
protected Field(name: String)

Creates a Field instance with the specified name.

Parameters
name String: Name of the attribute

Protected methods

readResolve

Added in API level 1
protected open fun readResolve(): Any

Resolves instances being deserialized to the predefined constants.

Return
Any resolved NumberFormat.Field constant
Exceptions
java.io.InvalidObjectException if the constant could not be resolved.

Properties

CURRENCY

Added in API level 1
static val CURRENCY: NumberFormat.Field

Constant identifying the currency field.

DECIMAL_SEPARATOR

Added in API level 1
static val DECIMAL_SEPARATOR: NumberFormat.Field

Constant identifying the decimal separator field.

EXPONENT

Added in API level 1
static val EXPONENT: NumberFormat.Field

Constant identifying the exponent field.

EXPONENT_SIGN

Added in API level 1
static val EXPONENT_SIGN: NumberFormat.Field

Constant identifying the exponent sign field.

EXPONENT_SYMBOL

Added in API level 1
static val EXPONENT_SYMBOL: NumberFormat.Field

Constant identifying the exponent symbol field.

FRACTION

Added in API level 1
static val FRACTION: NumberFormat.Field

Constant identifying the fraction field.

GROUPING_SEPARATOR

Added in API level 1
static val GROUPING_SEPARATOR: NumberFormat.Field

Constant identifying the grouping separator field.

INTEGER

Added in API level 1
static val INTEGER: NumberFormat.Field

Constant identifying the integer field.

PERCENT

Added in API level 1
static val PERCENT: NumberFormat.Field

Constant identifying the percent field.

PERMILLE

Added in API level 1
static val PERMILLE: NumberFormat.Field

Constant identifying the permille field.

SIGN

Added in API level 1
static val SIGN: NumberFormat.Field

Constant identifying the sign field.