HERE Android SDK Developer's Guide

DiscoveryResultPage

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

Class Summary

public class DiscoveryResultPage

extends java.lang.Object

Represents a paginated collection of results from a RequestCreator.Places search, explore, or here request.

[For complete information, see the section Class Details]

See also:

ExploreRequest

HereRequest

SearchRequest

Method Summary

Table 1. Methods in DiscoveryResultPage
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public java.util.List <DiscoveryLink> getDiscoveryLinks ()

Gets the list of DiscoveryLink items for the DiscoveryResultPage .

public java.util.List <DiscoveryResult> getItems ()

Gets the list of DiscoveryResult items for the DiscoveryResultPage .

public DiscoveryRequest getNextPageRequest ()

Gets the DiscoveryRequest for requesting the next page of the DiscoveryResultPage .

public int getOffsetCount ()

Gets the result offset count for the current page of the DiscoveryResultPage .

public java.util.List <PlaceLink> getPlaceLinks ()

Gets the list of PlaceLink items for the DiscoveryResultPage .

public DiscoveryRequest getPreviousPageRequest ()

Gets the DiscoveryRequest for requesting the previous page of the DiscoveryResultPage .

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents a paginated collection of results from a RequestCreator.Places search, explore, or here request. The collection contains DiscoveryResult objects, each of which represents either a PlaceLink or another DiscoveryLink.

See also:

ExploreRequest

HereRequest

SearchRequest

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

Gets the list of DiscoveryLink items for the DiscoveryResultPage .

Returns:

The list of DiscoveryLink objects (could be empty)

public java.util.List <DiscoveryResult> getItems ()

Gets the list of DiscoveryResult items for the DiscoveryResultPage .

Returns:

The list of DiscoveryResult objects (could be empty)

public DiscoveryRequest getNextPageRequest ()

Gets the DiscoveryRequest for requesting the next page of the DiscoveryResultPage .

Returns:

The DiscoveryRequest

public int getOffsetCount ()

Gets the result offset count for the current page of the DiscoveryResultPage .

For the first page of results, the offset count is 0. Following any call to getNextPageRequest(), the offset count will be greater than 0.

Returns:

The result offset count

Gets the list of PlaceLink items for the DiscoveryResultPage .

Returns:

The list of PlaceLink objects (could be empty)

public DiscoveryRequest getPreviousPageRequest ()

Gets the DiscoveryRequest for requesting the previous page of the DiscoveryResultPage .

Returns:

The DiscoveryRequest

public int hashCode ()

For documentation, see java.lang.Object

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.