public enum BinaryWireCode extends Enum<BinaryWireCode>
| Modifier and Type | Field and Description |
|---|---|
static int |
ANCHOR
Indicates a general anchor point within the serialized structure.
|
static int |
BYTES_LENGTH16
Sequence length 0 to 2^16-1 bytes.
|
static int |
BYTES_LENGTH32
Sequence length 0 to 2^32-1 bytes.
|
static int |
BYTES_LENGTH8
Sequence length 0 to 255 bytes.
|
static int |
BYTES_MARSHALLABLE
Deprecated.
|
static int |
COMMENT
Marks a comment, not intended for parsing as part of the data structure.
|
static int |
DATE
Represents a date value.
|
static int |
DATE_TIME
Represents a date-time value.
|
static int |
EVENT_NAME
A field of any length, marked as an event name.
|
static int |
EVENT_OBJECT
Indicates an event object instead of the typical string.
|
static int |
FALSE
boolean value representing 'false'.
|
static int |
FIELD_ANCHOR
Indicates a field anchor point within the serialized structure.
|
static int |
FIELD_NAME_ANY
A field name of any length.
|
static int |
FIELD_NAME0
Starting code for predefined field names of length 0, 1, 2 ...
|
static int |
FIELD_NAME31
Ending code for predefined field names.
|
static int |
FIELD_NUMBER
Represents a numerical field number instead of a name.
|
static int |
FLOAT_SET_LOW_0
Floating-point number rounded to the nearest whole number.
|
static int |
FLOAT_SET_LOW_2
Floating-point number rounded to 2 decimal places for compact storage.
|
static int |
FLOAT_SET_LOW_4
Floating-point number rounded to 4 decimal places for compact storage.
|
static int |
FLOAT_STOP_2
Floating-point number with 2 decimal places optimized for storage.
|
static int |
FLOAT_STOP_4
Floating-point number with 4 decimal places optimized for storage.
|
static int |
FLOAT_STOP_6
Floating-point number with 6 decimal places optimized for storage.
|
static int |
FLOAT32
Represents a 32-bit floating-point number.
|
static int |
FLOAT64
Represents a 64-bit floating-point number (double precision).
|
static int |
HINT
Provides a hint for serialization or deserialization processes, possibly affecting how data is interpreted.
|
static int |
HISTORY_MESSAGE
Indicates a HistoryMessage follows.
|
static int |
I64_ARRAY
Array of 64-bit integers.
|
static int |
INT16
Signed 16-bit integer (short).
|
static int |
INT32
Signed 32-bit integer.
|
static int |
INT64
Signed 64-bit integer (long).
|
static int |
INT64_0x
64-bit integer to be displaying in hexadecimal format.
|
static int |
INT8
Signed 8-bit integer (byte).
|
static int |
NULL
Code representing a null value in the serialized data.
|
static int |
PADDING
Single byte padding to ensure alignment.
|
static int |
PADDING32
padding with a 32-bit length to ensure alignment.
|
static int |
SET_LOW_INT16
16-bit integer with optimized storage for low positive values.
|
static int |
SET_LOW_INT8
8-bit integer with optimized storage for low positive values.
|
static int |
STRING_0
Starting code for compact string representation of length 0, 1, 2 ...
|
static int |
STRING_31
Ending code for compact string representation.
|
static int |
STRING_ANY
A String of any length
|
static String[] |
STRING_FOR_CODE
Array storing the string representations for each binary wire code, facilitating easier debugging and logging.
|
static int |
TIME
Represents a time value.
|
static int |
TRUE
boolean value representing 'true'.
|
static int |
TYPE_LITERAL
Represents a type literal.
|
static int |
TYPE_PREFIX
Prefix indicating the type of the following serialized object.
|
static int |
U8_ARRAY
Array of unsigned bytes.
|
static int |
UINT16
Unsigned 16-bit integer (short).
|
static int |
UINT32
Unsigned 32-bit integer.
|
static int |
UINT8
Unsigned 8-bit integer (byte).
|
static int |
UPDATED_ALIAS
Denotes an updated alias value.
|
static int |
UUID
Represents a universally unique identifier (UUID).
|
static int |
ZONED_DATE_TIME
Represents a zoned date-time value.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isFieldCode(int code)
Determines if the provided code corresponds to a field name.
|
static @NotNull String |
stringForCode(int code)
Retrieves the string representation of a binary wire code.
|
static BinaryWireCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BinaryWireCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final int BYTES_LENGTH8
public static final int BYTES_LENGTH16
public static final int BYTES_LENGTH32
@Deprecated public static final int BYTES_MARSHALLABLE
public static final int HISTORY_MESSAGE
public static final int FIELD_ANCHOR
public static final int ANCHOR
public static final int UPDATED_ALIAS
public static final int U8_ARRAY
public static final int I64_ARRAY
public static final int PADDING32
public static final int PADDING
public static final int FLOAT32
public static final int FLOAT64
public static final int FLOAT_STOP_2
public static final int FLOAT_STOP_4
public static final int FLOAT_STOP_6
public static final int FLOAT_SET_LOW_0
public static final int FLOAT_SET_LOW_2
public static final int FLOAT_SET_LOW_4
public static final int UUID
public static final int UINT8
public static final int UINT16
public static final int UINT32
public static final int INT8
public static final int INT16
public static final int INT32
public static final int INT64
public static final int SET_LOW_INT8
public static final int SET_LOW_INT16
public static final int INT64_0x
public static final int FALSE
public static final int TRUE
public static final int TIME
public static final int DATE
public static final int DATE_TIME
public static final int ZONED_DATE_TIME
public static final int TYPE_PREFIX
public static final int FIELD_NAME_ANY
public static final int STRING_ANY
public static final int EVENT_NAME
public static final int FIELD_NUMBER
public static final int NULL
public static final int TYPE_LITERAL
public static final int EVENT_OBJECT
public static final int COMMENT
public static final int HINT
public static final int FIELD_NAME0
public static final int FIELD_NAME31
public static final int STRING_0
public static final int STRING_31
public static final String[] STRING_FOR_CODE
public static BinaryWireCode[] values()
for (BinaryWireCode c : BinaryWireCode.values()) System.out.println(c);
public static BinaryWireCode 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 boolean isFieldCode(int code)
code - The binary wire code value.@NotNull public static @NotNull String stringForCode(int code)
code - The binary wire code value.Copyright © 2024. All rights reserved.