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

int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_STABILITY_LOCAL
int PARCELABLE_STABILITY_VINTF
int PARCELABLE_WRITE_RETURN_VALUE

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

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
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.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)