Skip to content

Instantly share code, notes, and snippets.

@rhusar
Last active May 22, 2019 12:21
Show Gist options
  • Save rhusar/3959ce8c5d3e98ffe021339038dc67b8 to your computer and use it in GitHub Desktop.
Save rhusar/3959ce8c5d3e98ffe021339038dc67b8 to your computer and use it in GitHub Desktop.
asd
private static final Map<Class<? extends Object>,Byte> PRIMITIVE_TYPES=new HashMap<>(15);
- private static final byte TYPE_NULL = 0;
- private static final byte TYPE_STREAMABLE = 1;
- private static final byte TYPE_SERIALIZABLE = 2;
- private static final byte TYPE_BOOLEAN = 10;
- private static final byte TYPE_BYTE = 11;
- private static final byte TYPE_CHAR = 12;
- private static final byte TYPE_DOUBLE = 13;
- private static final byte TYPE_FLOAT = 14;
- private static final byte TYPE_INT = 15;
- private static final byte TYPE_LONG = 16;
- private static final byte TYPE_SHORT = 17;
- private static final byte TYPE_STRING = 18; // ascii
- private static final byte TYPE_BYTEARRAY = 19;
- private static final byte TYPE_UTF_STRING = 21; // multibyte charset
-
- // constants
- public static final int MAX_PORT=65535; // highest port allocatable
+ private static final byte TYPE_NULL = 0;
+ private static final byte TYPE_STREAMABLE = 1;
+ private static final byte TYPE_SERIALIZABLE = 2;
+ private static final byte TYPE_BOOLEAN = 10;
+ private static final byte TYPE_BYTE = 11;
+ private static final byte TYPE_CHAR = 12;
+ private static final byte TYPE_DOUBLE = 13;
+ private static final byte TYPE_FLOAT = 14;
+ private static final byte TYPE_INT = 15;
+ private static final byte TYPE_LONG = 16;
+ private static final byte TYPE_SHORT = 17;
+ private static final byte TYPE_STRING = 18; // ascii
+ private static final byte TYPE_BYTEARRAY = 19;
+ private static final byte TYPE_UTF_STRING = 21; // multibyte charset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment