HERE Android SDK Developer's Guide

DiscoveryLink

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

Class Summary

public class DiscoveryLink

extends com.here.android.mpa.search.DiscoveryResult, com.here.android.mpa.search.Link, java.lang.Object

Represents a discovery-related API link, used to retrieve a DiscoveryResultPage .

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in DiscoveryLink
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 DiscoveryRequest getRequest ()

Gets the DiscoveryRequest to perform the next discovery search.

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 discovery-related API link, used to retrieve a DiscoveryResultPage .

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 DiscoveryRequest getRequest ()

Gets the DiscoveryRequest to perform the next discovery search.

Returns:

The DiscoveryRequest

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