Modifier and Type | Method and Description |
---|---|
static Intent |
fromString(java.lang.String value)
Convert string value to enum.
|
boolean |
isCompatible(Intent intent)
Check if intent is compatible with the given one.
|
boolean |
isIntent()
Check whether an intent is specified
|
boolean |
isIntentIn()
Check if it is an in intent.
|
boolean |
isIntentOut()
Check if it is an out intent.
|
java.lang.String |
toString()
Convert current enum to String value.
|
static Intent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Intent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Intent NONE
public static final Intent IN
public static final Intent OUT
public static final Intent INOUT
public static final Intent ANY
public static Intent[] values()
for (Intent c : Intent.values()) System.out.println(c);
public static Intent 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 Intent fromString(java.lang.String value)
value
- String value.public java.lang.String toString()
toString
in class java.lang.Enum<Intent>
public boolean isIntentIn()
public boolean isIntentOut()
public boolean isIntent()
public boolean isCompatible(Intent intent)
intent
- Intent to check with.