Enum Class RpcPacketFieldType
- All Implemented Interfaces:
Serializable,Comparable<RpcPacketFieldType>,Constable
Defines the various Perforce RPC packet field types and associated
methods. Mainly used to determine whether to treat a packet field value
as a string or bytes; most fields are strings, but things like worKRec
or depotRec fields are binary pass-throughs from the point of view of
the client (they're state keys and / or state records used by the server).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RpcPacketFieldTypegetFieldType(String fieldName) Return the field type associated with the passed-in name, if any.static RpcPacketFieldTypeReturns the enum constant of this class with the specified name.static RpcPacketFieldType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Field type is unknown. Field should probably not be used. -
TEXT
Field is text; possibly UTF-8 encoded. -
BINARY
Field is bytes, not interpreted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFieldType
Return the field type associated with the passed-in name, if any.- Parameters:
fieldName- fieldName- Returns:
- RpcPacketFieldType
-