File tree Expand file tree Collapse file tree
api/src/main/java/net/earthmc/mycelium/api/serialization Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package net .earthmc .mycelium .api .serialization ;
22
33/**
4- * A class holding simple codecs for common and otherwise primitive types.
4+ * A class holding simple codecs for common and primitive types.
55 */
66public final class Codecs {
77 private Codecs () {}
@@ -12,7 +12,37 @@ private Codecs() {}
1212 public static final JsonCodec <String > STRING = JsonCodec .simple (String .class );
1313
1414 /**
15- * A standard {@link Integer} codec
15+ * A standard {@link Integer} codec.
1616 */
1717 public static final JsonCodec <Integer > INTEGER = JsonCodec .simple (Integer .class );
18+
19+ /**
20+ * A standard {@link Long} codec.
21+ */
22+ public static final JsonCodec <Long > LONG = JsonCodec .simple (Long .class );
23+
24+ /**
25+ * A standard {@link Boolean} codec.
26+ */
27+ public static final JsonCodec <Boolean > BOOLEAN = JsonCodec .simple (Boolean .class );
28+
29+ /**
30+ * A standard {@link Short} codec.
31+ */
32+ public static final JsonCodec <Short > SHORT = JsonCodec .simple (Short .class );
33+
34+ /**
35+ * A standard {@link Double} codec.
36+ */
37+ public static final JsonCodec <Double > DOUBLE = JsonCodec .simple (Double .class );
38+
39+ /**
40+ * A standard {@link Float} codec.
41+ */
42+ public static final JsonCodec <Float > FLOAT = JsonCodec .simple (Float .class );
43+
44+ /**
45+ * A standard {@link Character} codec.
46+ */
47+ public static final JsonCodec <Character > CHARACTER = JsonCodec .simple (Character .class );
1848}
You can’t perform that action at this time.
0 commit comments