public static enum Command.Flag extends Enum<Command.Flag>
Command
Modifier and Type | Field and Description |
---|---|
int |
bitmask |
Modifier and Type | Method and Description |
---|---|
static int |
bitclear(int bitsetin,
Command.Flag... flags) |
static int |
bitset(Command.Flag... flags) |
static int |
bitset(int bitsetin,
Command.Flag... flags) |
static boolean |
isSet(int bitset,
Command.Flag flag) |
static Command.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command.Flag TEST
public static final Command.Flag FOO
public static final Command.Flag BAR
public static Command.Flag[] values()
for (Command.Flag c : Command.Flag.values()) System.out.println(c);
public static Command.Flag 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 static final int bitset(Command.Flag... flags)
public static final int bitset(int bitsetin, Command.Flag... flags)
public static boolean isSet(int bitset, Command.Flag flag)
public static final int bitclear(int bitsetin, Command.Flag... flags)
Copyright © 2009–2016. All rights reserved.