Package io.objectbox.flatbuffers
Class Constants
- java.lang.Object
-
- io.objectbox.flatbuffers.Constants
-
public class Constants extends java.lang.ObjectClass that holds shared constants
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intFILE_IDENTIFIER_LENGTHThe number of bytes in a file identifier.static intSIZE_PREFIX_LENGTHThe number of bytes in a size prefix.(package private) static intSIZEOF_BYTEThe number of bytes in an `byte`.(package private) static intSIZEOF_DOUBLEThe number of bytes in an `double`.(package private) static intSIZEOF_FLOATThe number of bytes in an `float`.(package private) static intSIZEOF_INTThe number of bytes in an `int`.(package private) static intSIZEOF_LONGThe number of bytes in an `long`.(package private) static intSIZEOF_SHORTThe number of bytes in a `short`.
-
Constructor Summary
Constructors Constructor Description Constants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidFLATBUFFERS_23_5_26()A version identifier to force a compile error if someone accidentally tries to build generated code with a runtime of two mismatched version.
-
-
-
Field Detail
-
SIZEOF_BYTE
static final int SIZEOF_BYTE
The number of bytes in an `byte`.- See Also:
- Constant Field Values
-
SIZEOF_SHORT
static final int SIZEOF_SHORT
The number of bytes in a `short`.- See Also:
- Constant Field Values
-
SIZEOF_INT
static final int SIZEOF_INT
The number of bytes in an `int`.- See Also:
- Constant Field Values
-
SIZEOF_FLOAT
static final int SIZEOF_FLOAT
The number of bytes in an `float`.- See Also:
- Constant Field Values
-
SIZEOF_LONG
static final int SIZEOF_LONG
The number of bytes in an `long`.- See Also:
- Constant Field Values
-
SIZEOF_DOUBLE
static final int SIZEOF_DOUBLE
The number of bytes in an `double`.- See Also:
- Constant Field Values
-
FILE_IDENTIFIER_LENGTH
static final int FILE_IDENTIFIER_LENGTH
The number of bytes in a file identifier.- See Also:
- Constant Field Values
-
SIZE_PREFIX_LENGTH
public static final int SIZE_PREFIX_LENGTH
The number of bytes in a size prefix.- See Also:
- Constant Field Values
-
-
Method Detail
-
FLATBUFFERS_23_5_26
public static void FLATBUFFERS_23_5_26()
A version identifier to force a compile error if someone accidentally tries to build generated code with a runtime of two mismatched version. Versions need to always match, as the runtime and generated code are modified in sync. Changes to the Java implementation need to be sure to change the version here and in the code generator on every possible incompatible change
-
-