public interface SearchResult
Modifier and Type | Method and Description |
---|---|
Address |
getAddress()
Gets the address of the search result if any.
|
int |
getCapabilities()
Returns the capabilities mask of the search result.
|
Friend |
getFriend()
Gets the friend of the search result if any.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
java.lang.String |
getPhoneNumber()
Gets the phone number of the search result if any.
|
int |
getSourceFlags()
Gets source flags of the search result.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
int |
getWeight()
Gets the weight of the search result.
|
boolean |
hasCapability(FriendCapability capability)
Returns whether or not the search result has the given capability.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
@Nullable Address getAddress()
Address
or null. int getCapabilities()
@Nullable Friend getFriend()
Friend
or null. @Nullable java.lang.String getPhoneNumber()
int getSourceFlags()
MagicSearchSource
int getWeight()
boolean hasCapability(FriendCapability capability)
capability
- the FriendCapability
to check void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object