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

protected Field(name: String)

Creates a Field instance with the specified name.

Parameters
name String: Name of the attribute

Protected methods

readResolve

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

DECIMAL_SEPARATOR

static val DECIMAL_SEPARATOR: NumberFormat.Field

Constant identifying the decimal separator field.

EXPONENT_SIGN

static val EXPONENT_SIGN: NumberFormat.Field

Constant identifying the exponent sign field.

EXPONENT_SYMBOL

static val EXPONENT_SYMBOL: NumberFormat.Field

Constant identifying the exponent symbol field.

GROUPING_SEPARATOR

static val GROUPING_SEPARATOR: NumberFormat.Field

Constant identifying the grouping separator 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.