D - The data type.public static class ResourceType.DataType<D> extends Object
| Modifier and Type | Field and Description |
|---|---|
static ResourceType.DataType<Boolean> |
BOOLEAN |
static ResourceType.DataType<java.time.LocalDateTime> |
DATE |
static ResourceType.DataType<Double> |
DOUBLE |
static ResourceType.DataType<Float> |
FLOAT |
static ResourceType.DataType<Integer> |
INTEGER |
static ResourceType.DataType<Long> |
LONG |
static ResourceType.DataType<String> |
STRING |
static com.google.common.collect.ImmutableMap<String,ResourceType.DataType<?>> |
SUPPORTED_TYPES |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
Object |
getPersistenceValue(D value)
Converts the provided value into the data type and format which it will be saved in.
|
D |
getValue(Object object)
Converts the provided value into it's correct data type
|
Schema.VertexProperty |
getVertexProperty() |
String |
toString() |
public static final ResourceType.DataType<String> STRING
public static final ResourceType.DataType<Boolean> BOOLEAN
public static final ResourceType.DataType<Integer> INTEGER
public static final ResourceType.DataType<Long> LONG
public static final ResourceType.DataType<Double> DOUBLE
public static final ResourceType.DataType<Float> FLOAT
public static final ResourceType.DataType<java.time.LocalDateTime> DATE
public static final com.google.common.collect.ImmutableMap<String,ResourceType.DataType<?>> SUPPORTED_TYPES
@CheckReturnValue public String getName()
@CheckReturnValue public Schema.VertexProperty getVertexProperty()
@CheckReturnValue public Object getPersistenceValue(D value)
value - The value to be converted@CheckReturnValue public D getValue(Object object)
object - The object to be converted into the valueCopyright © 2017 Grakn Labs Ltd. All rights reserved.