public static enum ProtocolMessage.Flag extends java.lang.Enum<ProtocolMessage.Flag>
| Enum Constant and Description |
|---|
HAS_BACKLOG |
HAS_PRESENCE |
| Modifier and Type | Method and Description |
|---|---|
static ProtocolMessage.Flag |
findByValue(int value) |
int |
getValue() |
static ProtocolMessage.Flag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolMessage.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolMessage.Flag HAS_PRESENCE
public static final ProtocolMessage.Flag HAS_BACKLOG
public static ProtocolMessage.Flag[] values()
for (ProtocolMessage.Flag c : ProtocolMessage.Flag.values()) System.out.println(c);
public static ProtocolMessage.Flag 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 getValue()
public static ProtocolMessage.Flag findByValue(int value)