public class ContactDetail
extends java.lang.Object
Place
.
For example, if a Place
has among its known contacts the phone
number 555-1234, use this class to access details about that particular
contact's type ("phone") and value ("555-1234").
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLabel()
Gets the localized label for the
ContactDetail , describing the
mechanism by which application users can contact the Place
(e.g. |
java.lang.String |
getType()
Gets the type (email, fax, phone, website, etc.) for the
ContactDetail . |
java.lang.String |
getValue()
Gets the value corresponding to an associated contact mechanism label
for the
ContactDetail . |
int |
hashCode() |
public java.lang.String getType()
ContactDetail
.public java.lang.String getLabel()
ContactDetail
, describing the
mechanism by which application users can contact the Place
(e.g. "Phone").getValue()
public java.lang.String getValue()
ContactDetail
.
For example, if the mechanism for contacting a Place
is "phone"
then a call to this method might return "555-1234" as the
corresponding value.
getLabel()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object