public final class DataProperty extends Object implements AutoCloseable
DataType
.
A property has a name and a value type. The value type indicates whether the value is a simple primitive or another data object.
New properties can be defined using a DataProperty.Builder
(see newBuilder()
).
Instances of this class are thread safe. Once an instance has been created, there is no public API to modify it.
Modifier and Type | Class and Description |
---|---|
static class |
DataProperty.Builder
Builder that allows DataProperty instances to be created. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object other) |
protected void |
finalize() |
String |
getName() |
DataType |
getValueType() |
int |
hashCode() |
static DataProperty.Builder |
newBuilder()
Creates a new
DataProperty builder. |
String |
toString() |
public void close()
close
in interface AutoCloseable
@NotNull public static DataProperty.Builder newBuilder()
DataProperty
builder.DataProperty
builder.@NotNull public String getName()
@NotNull public DataType getValueType()