FindAutocompletePredictionsResponse

public abstract class FindAutocompletePredictionsResponse implements Response


Response for FindAutocompletePredictionsRequest.

Summary

Public constructors

Public methods

abstract List<AutocompletePrediction>

Returns the AutocompletePrediction list returned by the response.

static FindAutocompletePredictionsResponse
newInstance(List<AutocompletePrediction> autocompletePredictions)

Returns a FindAutocompletePredictionsResponse.

Public constructors

FindAutocompletePredictionsResponse

public FindAutocompletePredictionsResponse()

Public methods

getAutocompletePredictions

public abstract List<AutocompletePredictiongetAutocompletePredictions()

Returns the AutocompletePrediction list returned by the response.

This list should not be modified, and contains up to 5 predictions.

newInstance

public static FindAutocompletePredictionsResponse newInstance(List<AutocompletePrediction> autocompletePredictions)

Returns a FindAutocompletePredictionsResponse.

Mutable members (e.g List) will be converted to immutable versions.

Parameters
List<AutocompletePrediction> autocompletePredictions

the AutocompletePrediction list returned by the response.