public enum MagicSearchSource extends java.lang.Enum<MagicSearchSource>
Enum Constant | Description |
---|---|
All |
Search in all sources.
|
CallLogs |
Search in Call Logs.
|
ChatRooms |
Search in Chat rooms participants.
|
FavoriteFriends |
Search in "starred" friends only.
|
Friends |
Search in friends only.
|
LdapServers |
Search in LDAP servers.
|
None |
no Source specified.
|
Request |
Search from request : it is usually an address built from the request.
|
Modifier and Type | Field | Description |
---|---|---|
protected int |
mValue |
Modifier and Type | Method | Description |
---|---|---|
static MagicSearchSource |
fromInt(int value) |
|
protected static MagicSearchSource[] |
fromIntArray(int[] values) |
|
int |
toInt() |
|
protected static int[] |
toIntArray(MagicSearchSource[] values) |
|
static MagicSearchSource |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MagicSearchSource[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MagicSearchSource None
public static final MagicSearchSource Friends
public static final MagicSearchSource CallLogs
public static final MagicSearchSource LdapServers
public static final MagicSearchSource ChatRooms
public static final MagicSearchSource Request
public static final MagicSearchSource FavoriteFriends
public static final MagicSearchSource All
public static MagicSearchSource[] values()
for (MagicSearchSource c : MagicSearchSource.values()) System.out.println(c);
public static MagicSearchSource valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static MagicSearchSource fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static MagicSearchSource[] fromIntArray(int[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static int[] toIntArray(MagicSearchSource[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()