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


open class Field : Format.Field

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

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from MessageFormat.formatToCharacterIterator.

Summary

Protected constructors
Field(name: String!) Create a Field with the specified name.
Protected methods
open Any! readResolve() Resolves instances being deserialized to the predefined constants.
Properties
static MessageFormat.Field! ARGUMENT Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator.

Protected constructors

Field

protected Field(name: String!)

Create a Field with the specified name.

Parameters
name String!: The name of the attribute

Protected methods

readResolve

protected open fun readResolve(): Any!

Resolves instances being deserialized to the predefined constants.

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

Properties

ARGUMENT

static val ARGUMENT: MessageFormat.Field!

Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator. The value associated with the key will be an Integer indicating the index in the arguments array of the argument from which the text was generated.

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.