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 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 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