Package io.hgraphdb
Enum ValueType
- java.lang.Object
-
- java.lang.Enum<ValueType>
-
- io.hgraphdb.ValueType
-
- All Implemented Interfaces:
Serializable
,Comparable<ValueType>
public enum ValueType extends Enum<ValueType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
BINARY
BOOLEAN
BYTE
COUNTER
DATE
32-bit integer representing the number of DAYS since Unix epoch, i.e.DECIMAL
DOUBLE
ENUM
FLOAT
INT
INTERVAL
A value representing a period of time between two instants.KRYO_SERIALIZABLE
LONG
NULL
SERIALIZABLE
SHORT
STRING
TIME
32-bit integer representing time of the day in milliseconds.TIMESTAMP
64-bit integer representing the number of milliseconds since epoch, i.e.UUID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getCode()
static ValueType
valueOf(int typeCode)
Returns the enum constant of this type with the specified name.static ValueType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final ValueType NULL
-
BOOLEAN
public static final ValueType BOOLEAN
-
STRING
public static final ValueType STRING
-
BYTE
public static final ValueType BYTE
-
SHORT
public static final ValueType SHORT
-
INT
public static final ValueType INT
-
LONG
public static final ValueType LONG
-
FLOAT
public static final ValueType FLOAT
-
DOUBLE
public static final ValueType DOUBLE
-
DECIMAL
public static final ValueType DECIMAL
-
DATE
public static final ValueType DATE
32-bit integer representing the number of DAYS since Unix epoch, i.e. January 1, 1970 00:00:00 UTC. The value is absolute and is time-zone independent. Negative values represents dates before epoch.
-
TIME
public static final ValueType TIME
32-bit integer representing time of the day in milliseconds. The value is absolute and is time-zone independent.
-
TIMESTAMP
public static final ValueType TIMESTAMP
64-bit integer representing the number of milliseconds since epoch, i.e. January 1, 1970 00:00:00 UTC. Negative values represent dates before epoch.
-
INTERVAL
public static final ValueType INTERVAL
A value representing a period of time between two instants.
-
BINARY
public static final ValueType BINARY
-
ENUM
public static final ValueType ENUM
-
KRYO_SERIALIZABLE
public static final ValueType KRYO_SERIALIZABLE
-
SERIALIZABLE
public static final ValueType SERIALIZABLE
-
UUID
public static final ValueType UUID
-
ANY
public static final ValueType ANY
-
COUNTER
public static final ValueType COUNTER
-
-
Method Detail
-
values
public static ValueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ValueType c : ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public byte getCode()
-
valueOf
public static ValueType valueOf(int typeCode)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
typeCode
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-