java.io.Serializable
, java.lang.Comparable<SpeakingMode>
public enum SpeakingMode extends java.lang.Enum<SpeakingMode>
Enum Constant | Description |
---|---|
PRIORITY |
|
SOUNDSHARE |
|
VOICE |
Modifier and Type | Method | Description |
---|---|---|
static java.util.EnumSet<SpeakingMode> |
getModes(int mask) |
Parses the active modes represented by the provided bitmask
|
int |
getRaw() |
The raw bitmask for this mode
|
static int |
getRaw(java.util.Collection<SpeakingMode> modes) |
Converts the given speaking modes into raw its bitmast.
|
static int |
getRaw(SpeakingMode... modes) |
Converts the given speaking modes into raw its bitmast.
|
static SpeakingMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SpeakingMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpeakingMode VOICE
public static final SpeakingMode SOUNDSHARE
public static final SpeakingMode PRIORITY
public static SpeakingMode[] values()
for (SpeakingMode c : SpeakingMode.values()) System.out.println(c);
public static SpeakingMode 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 int getRaw()
public static java.util.EnumSet<SpeakingMode> getModes(int mask)
mask
- The bitmask containing the active speaking modesEnumSet
containing the speaking modespublic static int getRaw(SpeakingMode... modes)
modes
- The modespublic static int getRaw(java.util.Collection<SpeakingMode> modes)
modes
- The modes