Skip to content

Data Types#

For maximum interoperability, Sponge assumes that Datastores transmit and accept values that conform the java primitive and built-in types.

DataType Description Java Class accepted by Sponge
long 64-bit integer Long
int 32-bit integer Integer
string Character sequence String
link, foreign key, ObjectId Foreign reference to another object or nested object Id
double 64-bit double precision integer Double
float 32-bit floating point integer Float
boolean True or False Boolean
date, datetime, isoDate, timestamp An instantaneous point on the timeline Instant