public static enum AbstractMessage.QOSType extends Enum<AbstractMessage.QOSType>
| Enum Constant and Description |
|---|
EXACTLY_ONCE |
FAILURE |
LEAST_ONE |
MOST_ONE |
RESERVED |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
static String |
formatQoS(AbstractMessage.QOSType qos) |
static AbstractMessage.QOSType |
valueOf(byte qos) |
static AbstractMessage.QOSType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractMessage.QOSType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractMessage.QOSType MOST_ONE
public static final AbstractMessage.QOSType LEAST_ONE
public static final AbstractMessage.QOSType EXACTLY_ONCE
public static final AbstractMessage.QOSType RESERVED
public static final AbstractMessage.QOSType FAILURE
public static AbstractMessage.QOSType[] values()
for (AbstractMessage.QOSType c : AbstractMessage.QOSType.values()) System.out.println(c);
public static AbstractMessage.QOSType 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 AbstractMessage.QOSType valueOf(byte qos)
public byte byteValue()
public static String formatQoS(AbstractMessage.QOSType qos)
Copyright © 2016. All rights reserved.