public enum BindType extends java.lang.Enum<BindType>
Enum Constant and Description |
---|
BIND_RX
Bind receiver.
|
BIND_TRX
Bind transceiver.
|
BIND_TX
Bind transmitter.
|
Modifier and Type | Method and Description |
---|---|
int |
commandId()
Get the command_id of given bind type.
|
boolean |
isReceiveable()
Inform whether the bind type is receivable.
|
boolean |
isTransmitable()
Inform whether the bind type is transmitable.
|
int |
responseCommandId()
Return the response command_id that should given by this bind type.
|
static BindType |
valueOf(int bindCommandId)
Get the BindType by specified command_id.
|
static BindType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BindType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BindType BIND_TX
public static final BindType BIND_RX
public static final BindType BIND_TRX
public static BindType[] values()
for (BindType c : BindType.values()) System.out.println(c);
public static BindType 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 commandId()
public int responseCommandId()
public boolean isTransmitable()
public boolean isReceiveable()
public static final BindType valueOf(int bindCommandId) throws java.lang.IllegalArgumentException
bindCommandId
- is the command_id.java.lang.IllegalArgumentException
- if there is no BindType
associated with specified bindCommandId found.