mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
[Java] Implement optional scalars (#6212)
Java implementation of optional scalars, following issue #6014.
This commit is contained in:
15
tests/optional_scalars/OptionalByte.java
Normal file
15
tests/optional_scalars/OptionalByte.java
Normal file
@@ -0,0 +1,15 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
package optional_scalars;
|
||||
|
||||
public final class OptionalByte {
|
||||
private OptionalByte() { }
|
||||
public static final byte None = 0;
|
||||
public static final byte One = 1;
|
||||
public static final byte Two = 2;
|
||||
|
||||
public static final String[] names = { "None", "One", "Two", };
|
||||
|
||||
public static String name(int e) { return names[e]; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user