Action Required! Starting November 21st, 2022, Nest Hubs opted into the Preview Program are being updated to support Matter 1.0 in anticipation of Google's general availability (GA) of Matter. All Matter devices being used with the Preview Program will need to be updated. See the Release Notes for more details.

TxtRecord

Stay organized with collections Save and categorize content based on your preferences.
public final class TxtRecord extends Object
implements Parcelable

Represents a single TXT record.

TXT record keys are normalized to lowercase ASCII equivalents, so case should be ignored when inspecting these records for a given key.

Inherited Constant Summary

Public Method Summary

static TxtRecord
create(String key, String value)
Creates a TxtRecord from the given key and value.
boolean
String
getKey()
Returns the TXT record key, normalized to lowercase ASCII.
String
getValue()
Returns the TXT record value.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Public Methods

public static TxtRecord create (String key, String value)

Creates a TxtRecord from the given key and value.

Throws
IllegalArgumentException if key is empty
NullPointerException if key or value are null

public boolean equals (Object o)

public String getKey ()

Returns the TXT record key, normalized to lowercase ASCII.

public String getValue ()

Returns the TXT record value.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)