AutocompletePrediction.Builder

public abstract class AutocompletePrediction.Builder


Builder for AutocompletePrediction.

Summary

Public constructors

Public constructors

Builder

public Builder()

Public methods

build

public AutocompletePrediction build()

Build the AutocompletePrediction.

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

getDistanceMeters

public abstract @Nullable Integer getDistanceMeters()

getFullText

public abstract String getFullText()

getPlaceTypes

public abstract List<Place.TypegetPlaceTypes()

getPrimaryText

public abstract String getPrimaryText()

getSecondaryText

public abstract String getSecondaryText()

getTypes

public abstract List<StringgetTypes()

setDistanceMeters

public abstract AutocompletePrediction.Builder setDistanceMeters(@Nullable Integer distanceMeters)

setFullText

public abstract AutocompletePrediction.Builder setFullText(String fullText)

setPlaceTypes

public abstract AutocompletePrediction.Builder setPlaceTypes(List<Place.Type> placeTypes)

setPrimaryText

public abstract AutocompletePrediction.Builder setPrimaryText(String primaryText)

setSecondaryText

public abstract AutocompletePrediction.Builder setSecondaryText(String secondaryText)

setTypes

public abstract AutocompletePrediction.Builder setTypes(List<String> placeTypes)