public enum RpcPacketFieldType extends java.lang.Enum<RpcPacketFieldType>
Enum Constant and Description |
---|
BINARY
Field is bytes, not interpreted.
|
NONE
Field type is unknown.
|
TEXT
Field is text; possibly UTF-8 encoded.
|
Modifier and Type | Method and Description |
---|---|
static RpcPacketFieldType |
getFieldType(java.lang.String fieldName)
Return the field type associated with the passed-in name, if any.
|
static RpcPacketFieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RpcPacketFieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RpcPacketFieldType NONE
public static final RpcPacketFieldType TEXT
public static final RpcPacketFieldType BINARY
public static RpcPacketFieldType[] values()
for (RpcPacketFieldType c : RpcPacketFieldType.values()) System.out.println(c);
public static RpcPacketFieldType 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 static RpcPacketFieldType getFieldType(java.lang.String fieldName)
fieldName
- fieldName