@UnstableApi
class Label


A label for a Format.

Summary

Public constructors

Label(language: String?, value: String!)

Creates a label.

Public functions

Boolean
equals(o: Any?)
java-static Label!
fromBundle(bundle: Bundle!)

Deserializes an instance from a Bundle produced by toBundle.

Int
Bundle!

Serializes this instance to a Bundle.

Public properties

String?

The language of this label, as an IETF BCP 47 conformant tag, or null if unknown or not applicable.

String!

The value for this label.

Public constructors

Label

Label(language: String?, value: String!)

Creates a label.

Parameters
language: String?

The language of this label, as an IETF BCP 47 conformant tag, or null if unknown or not applicable.

value: String!

The label value.

Public functions

equals

fun equals(o: Any?): Boolean

fromBundle

java-static fun fromBundle(bundle: Bundle!): Label!

Deserializes an instance from a Bundle produced by toBundle.

hashCode

fun hashCode(): Int

toBundle

fun toBundle(): Bundle!

Serializes this instance to a Bundle.

Public properties

language

val languageString?

The language of this label, as an IETF BCP 47 conformant tag, or null if unknown or not applicable.

value

val valueString!

The value for this label.