public enum MagicSearchSource extends java.lang.Enum<MagicSearchSource>
Enum Constant and Description |
---|
All
Search in all sources.
|
CallLogs
Search in Call Logs.
|
ChatRooms
Search in Chat rooms participants.
|
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 and Description |
---|---|
protected int |
mValue |
Modifier and Type | Method and Description |
---|---|
static MagicSearchSource |
fromInt(int value) |
int |
toInt() |
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 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
public int toInt()