Package com.github.perdia.queries.data
Enum Class DataType
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
,Constable
Enum containing all possible datatypes an entry in the database can have.
This enum contains Long and Double instead of Integer and Float since Perdia-DB uses Rusts 64-bit Integers and
Floats, and Javas Integer and Float types are only 32-bit.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
-
Enum Constant Details
-
STRING
DataType for storing Strings -
INTEGER
DataType for storing Longs (64-bit Integers) -
FLOAT
DataType for storing Doubles (64-bit Floats) -
UNDEFINED
DataType for entries that have no value yet
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-