Package io.objectbox.flatbuffers
Class Constants
java.lang.Object
io.objectbox.flatbuffers.Constants
Class that holds shared constants
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intThe number of bytes in a file identifier.static final intThe number of bytes in a size prefix.(package private) static final intThe number of bytes in an `byte`.(package private) static final intThe number of bytes in an `double`.(package private) static final intThe number of bytes in an `float`.(package private) static final intThe number of bytes in an `int`.(package private) static final intThe number of bytes in an `long`.(package private) static final intThe number of bytes in a `short`. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidA version identifier to force a compile error if someone accidentally tries to build generated code with a runtime of two mismatched version.
-
Field Details
-
SIZEOF_BYTE
static final int SIZEOF_BYTEThe number of bytes in an `byte`.- See Also:
-
SIZEOF_SHORT
static final int SIZEOF_SHORTThe number of bytes in a `short`.- See Also:
-
SIZEOF_INT
static final int SIZEOF_INTThe number of bytes in an `int`.- See Also:
-
SIZEOF_FLOAT
static final int SIZEOF_FLOATThe number of bytes in an `float`.- See Also:
-
SIZEOF_LONG
static final int SIZEOF_LONGThe number of bytes in an `long`.- See Also:
-
SIZEOF_DOUBLE
static final int SIZEOF_DOUBLEThe number of bytes in an `double`.- See Also:
-
FILE_IDENTIFIER_LENGTH
static final int FILE_IDENTIFIER_LENGTHThe number of bytes in a file identifier.- See Also:
-
SIZE_PREFIX_LENGTH
public static final int SIZE_PREFIX_LENGTHThe number of bytes in a size prefix.- See Also:
-
-
Constructor Details
-
Constants
public Constants()
-
-
Method Details
-
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
-