public class SearchResult
extends java.lang.Object
implements android.os.Parcelable
NavigationSDK.searchTown(SearchRequest, int, boolean)
,
NavigationSDK.searchPostcode(SearchRequest, int, boolean, boolean)
,
NavigationSDK.searchStreet(SearchRequest, int, SearchResult)
and
NavigationSDK.searchHouseNr(SearchRequest, int, SearchResult, SearchResult)
.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<SearchResult> |
CREATOR |
protected boolean |
jniCMemOwn |
protected long |
jniCPtr |
com.ptvag.navigation.sdk.NativeObject |
parent |
Constructor and Description |
---|
SearchResult()
Constructor
|
SearchResult(long cPtr,
boolean cMemoryOwn)
Only for internal use - don't try to call this from Java.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Kills rubbish if owning the object.
|
int |
describeContents() |
protected void |
finalize() |
long |
getAddrOffset()
Internal use only
|
short |
getCat()
Returns the category.
|
int |
getCC()
Returns the numerical country code of the item.
|
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
SearchKind |
getKind()
Returns the kind of search request.
|
java.lang.String |
getName()
Returns the name of the item, to be displayed in a list.
|
Position |
getPosition()
Position of the search result
|
int |
getRequestIndex()
Internal use only
|
int |
getTabOffset()
Internal use only
|
short |
getType()
Returns the type of the result
|
long |
getUsrOffset()
Internal use only
|
void |
setCat(short cat)
Set the category of the result
|
void |
setCC(int countryCode)
Set the numerical country code
|
void |
setKind(SearchKind kind) |
void |
setName(java.lang.String name)
Set the name
|
void |
setPosition(Position position) |
void |
setType(short type)
Set the type
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
public static final android.os.Parcelable.Creator<SearchResult> CREATOR
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public SearchResult()
public SearchResult(long cPtr, boolean cMemoryOwn)
public SearchKind getKind()
public void setKind(SearchKind kind)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- name to be setpublic int getCC()
public void setCC(int countryCode)
countryCode
- public short getCat()
public void setCat(short cat)
cat
- public short getType()
public void setType(short type)
type
- public Position getPosition()
public void setPosition(Position position)
public long getAddrOffset()
public long getUsrOffset()
public int getTabOffset()
public int getRequestIndex()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object
public static long getCPtr(com.ptvag.navigation.sdk.NativeObject obj)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void delete()