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
int | CONTENTS_FILE_DESCRIPTOR | |
int | PARCELABLE_STABILITY_LOCAL | |
int | PARCELABLE_STABILITY_VINTF | |
int | PARCELABLE_WRITE_RETURN_VALUE |
Public Method Summary
Inherited Method Summary
abstract int |
describeContents()
|
abstract void |
writeToParcel(Parcel arg0,
int arg1)
|
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.