public enum RpcCommandCode extends Enum<RpcCommandCode> implements CommandCode
| Enum Constant and Description |
|---|
RPC_REQUEST |
RPC_RESPONSE |
HEARTBEAT_VALUE| Modifier and Type | Method and Description |
|---|---|
short |
value() |
static RpcCommandCode |
valueOf(short value) |
static RpcCommandCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RpcCommandCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RpcCommandCode RPC_REQUEST
public static final RpcCommandCode RPC_RESPONSE
public static RpcCommandCode[] values()
for (RpcCommandCode c : RpcCommandCode.values()) System.out.println(c);
public static RpcCommandCode 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 short value()
value in interface CommandCodepublic static RpcCommandCode valueOf(short value)
Copyright © 2024. All rights reserved.