public enum Activity extends Enum<Activity>
Enum Constant and Description |
---|
EXCEPTION
An error occured on the stream.
|
READ
Data are available on the stream.
|
WRITE
The stream is accepting data.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of this enumeration literal.
|
boolean |
isSet(int val)
Tests for the presence of this flag in the specified value.
|
int |
or(Activity val)
Returns the result of or-ing this flag into another.
|
int |
or(int val)
Returns the result of or-ing this flag into an integer.
|
static Activity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Activity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Activity READ
public static final Activity WRITE
public static final Activity EXCEPTION
public static Activity[] values()
for (Activity c : Activity.values()) System.out.println(c);
public static Activity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public int or(int val)
val
- the value to OR this enumeration value into.public int or(Activity val)
val
- the value to OR this enumeration value into.public boolean isSet(int val)
val
- the value.true
if this flag is present.Copyright © 2016 Open Grid Forum. All rights reserved.