Field
open class Field : Format.Field
kotlin.Any | |||
↳ | java.text.AttributedCharacterIterator.Attribute | ||
↳ | java.text.Format.Field | ||
↳ | android.icu.text.MessageFormat.Field |
Defines constants that are used as attribute keys in the AttributedCharacterIterator
returned from MessageFormat.formatToCharacterIterator
.
Summary
Protected constructors | |
---|---|
Create a |
Protected methods | |
---|---|
open Any! |
Resolves instances being deserialized to the predefined constants. |
Properties | |
---|---|
static MessageFormat.Field! |
Constant identifying a portion of a message that was generated from an argument passed into |
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.