public static class AutocompleteMatch.Term extends Object implements Parcelable
Term
represents a section of the returned description and is usually terminated
with a comma.
For example: if AutocompleteMatch.getDescription()
returns Starbucks, 7th Avenue, Seattle, WA,
United States
then the 2nd term would return 7th Avenue
from AutocompleteMatch.Term.getTerm()
and 11
from AutocompleteMatch.Term.getOffset()
.AutocompleteMatch.getDescription()
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AutocompleteMatch.Term> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getOffset()
Get the term's start offset in the description.
|
String |
getTerm()
Get
String value of the term. |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<AutocompleteMatch.Term> CREATOR
public int getOffset()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.