public final class DataValue extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DataValue.Builder |
| Constructor and Description |
|---|
DataValue(long statusCode) |
DataValue(StatusCode statusCode) |
DataValue(Variant value) |
DataValue(Variant value,
StatusCode status) |
DataValue(Variant value,
StatusCode status,
@Nullable DateTime time) |
DataValue(Variant value,
StatusCode status,
@Nullable DateTime sourceTime,
@Nullable DateTime serverTime) |
DataValue(@NotNull Variant value,
@Nullable StatusCode status,
@Nullable DateTime sourceTime,
@Nullable UShort sourcePicoseconds,
@Nullable DateTime serverTime,
@Nullable UShort serverPicoseconds) |
| Modifier and Type | Method and Description |
|---|---|
DataValue.Builder |
copy() |
DataValue |
copy(Consumer<DataValue.Builder> c) |
static DataValue |
derivedNonValue(DataValue from,
TimestampsToReturn timestamps)
|
static DataValue |
derivedValue(DataValue from,
TimestampsToReturn timestamps)
|
boolean |
equals(Object o) |
@Nullable UShort |
getServerPicoseconds() |
@Nullable DateTime |
getServerTime() |
@Nullable UShort |
getSourcePicoseconds() |
@Nullable DateTime |
getSourceTime() |
@Nullable StatusCode |
getStatusCode() |
Variant |
getValue() |
int |
hashCode() |
static DataValue.Builder |
newValue() |
String |
toString() |
static DataValue |
valueOnly(Variant v)
Create a
DataValue containing *only* the Variant. |
DataValue |
withServerTime(@Nullable DateTime serverTime) |
DataValue |
withSourceTime(@Nullable DateTime sourceTime) |
DataValue |
withStatus(StatusCode status) |
public DataValue(long statusCode)
public DataValue(StatusCode statusCode)
public DataValue(Variant value)
public DataValue(Variant value, StatusCode status)
public DataValue(Variant value, StatusCode status, @Nullable @Nullable DateTime time)
public DataValue(Variant value, StatusCode status, @Nullable @Nullable DateTime sourceTime, @Nullable @Nullable DateTime serverTime)
public Variant getValue()
@Nullable public @Nullable StatusCode getStatusCode()
@Nullable public @Nullable DateTime getSourceTime()
@Nullable public @Nullable UShort getSourcePicoseconds()
@Nullable public @Nullable DateTime getServerTime()
@Nullable public @Nullable UShort getServerPicoseconds()
public DataValue withStatus(StatusCode status)
public DataValue.Builder copy()
public DataValue copy(Consumer<DataValue.Builder> c)
public static DataValue.Builder newValue()
public static DataValue derivedValue(DataValue from, TimestampsToReturn timestamps)
public static DataValue derivedNonValue(DataValue from, TimestampsToReturn timestamps)
Copyright © 2025. All rights reserved.