public class DataValue<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DataValue.Type |
Constructor and Description |
---|
DataValue(T value,
DataValue.Type type,
String format)
Creates a new DataValue instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(DataValueVisitor visitor)
Implements the Visitor pattern for this data value.
|
boolean |
equals(Object object) |
String |
getFormat()
Returns the data format.
|
DataValue.Type |
getType()
Returns the data type.
|
T |
getValue()
Returns the data value.
|
int |
hashCode() |
static <T> DataValue<T> |
of(T value,
DataValue.Type type,
String format)
Creates a new DataValue instance.
|
String |
toString() |
public DataValue(T value, DataValue.Type type, String format)
public T getValue()
public DataValue.Type getType()
public String getFormat()
public static <T> DataValue<T> of(T value, DataValue.Type type, String format)
public void accept(DataValueVisitor visitor)
Copyright © 2024 The Cornutum Project. All rights reserved.