@UnstableApi
public class Label


A label for a Format.

Summary

Public fields

final @Nullable String

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

final String

The value for this label.

Public constructors

Label(@Nullable String language, String value)

Creates a label.

Public methods

boolean
static Label

Deserializes an instance from a Bundle produced by toBundle.

int
Bundle

Serializes this instance to a Bundle.

Public fields

language

public final @Nullable String language

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

value

public final String value

The value for this label.

Public constructors

Label

public Label(@Nullable String language, String value)

Creates a label.

Parameters
@Nullable String language

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

String value

The label value.

Public methods

equals

public boolean equals(@Nullable Object o)

fromBundle

public static Label fromBundle(Bundle bundle)

Deserializes an instance from a Bundle produced by toBundle.

hashCode

public int hashCode()

toBundle

public Bundle toBundle()

Serializes this instance to a Bundle.