TxtRecord

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)