HERE Android SDK Developer's Guide

ContactDetail

The class ContactDetail is a member of com.here.android.mpa.search .

Class Summary

public class ContactDetail

extends java.lang.Object

Represents detailed information about a contact for a Place.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in ContactDetail
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public String getLabel ()

Gets the localized label for the ContactDetail , describing the mechanism by which application users can contact the Place (e.g.

public String getType ()

Gets the type (email, fax, phone, website, etc.) for the ContactDetail .

public String getValue ()

Gets the value corresponding to an associated contact mechanism label for the ContactDetail .

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents detailed information about a contact for a 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").

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public String getLabel ()

Gets the localized label for the ContactDetail , describing the mechanism by which application users can contact the Place (e.g. "Phone").

Returns:

The label

See also:

getValue()

public String getType ()

Gets the type (email, fax, phone, website, etc.) for the ContactDetail .

Returns:

The type

public String getValue ()

Gets the value corresponding to an associated contact mechanism label for the 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.

Returns:

The value

See also:

getLabel()

public int hashCode ()

For documentation, see java.lang.Object