HERE Android SDK Developer's Guide

Link

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

Class Summary

public class Link

extends java.lang.Object

Represents a Link indicating that the application must make another request to retrieve the desired resource.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in Link
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public String getIconUrl ()

Gets the URL to retrieve the icon for the resource to which the Link refers.

public String getId ()

Gets the unique identifier for the resource to which the Link refers.

public String getTitle ()

Gets the localized title for the resource to which the Link refers.

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents a Link indicating that the application must make another request to retrieve the desired resource.

Note: a Link contains metadata about the linked resource.

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public String getIconUrl ()

Gets the URL to retrieve the icon for the resource to which the Link refers.

Note: an icon URL for a linked object is optional, so a call to this method could return empty .

Returns:

The icon URL (could be empty)

public String getId ()

Gets the unique identifier for the resource to which the Link refers.

Note: an ID for a linked object is optional, so a call to this method could return empty .

Returns:

The ID (could be empty)

public String getTitle ()

Gets the localized title for the resource to which the Link refers. Client devices can display this title within an application.

Note: a title for a linked object is optional, so a call to this method could return empty .

Returns:

The title (could be empty)

public int hashCode ()

For documentation, see java.lang.Object