@NotThreadSafe public class ResultValue extends PointValue
PointValue.Null
NULL, POINT_FIELD, STAMP_FIELD, STATE_FIELD, UUID_FIELD, VALUE_FIELD
SERIALIZABLE_MODE, SIMPLE_STRING_MODE
Modifier | Constructor and Description |
---|---|
|
ResultValue()
Constructs an instance.
|
|
ResultValue(Point point,
Optional<DateTime> stamp)
Constructs an instance.
|
protected |
ResultValue(ResultValue other)
Constructs an instance from an other.
|
Modifier and Type | Method and Description |
---|---|
void |
addInputValue(PointValue inputValue)
Adds an input value.
|
ResultValue |
copy()
Creates a copy of this point value.
|
List<PointValue> |
getInputValues()
Gets the input values.
|
boolean |
isFetched()
Asks if this instance has been fetched.
|
boolean |
isReplaceable()
Asks if this instance is replaceable.
|
ResultValue |
morph(Optional<UUID> uuid)
Morphs this into a point value for an other point.
|
void |
readExternal(ObjectInput input) |
void |
setFetched(boolean fetched)
Sets the fetched indicator.
|
void |
writeExternal(ObjectOutput output) |
checkNotFrozen, clearStamp, confirm, copyValueFrom, decoded, denormalized, encoded, equals, freeze, frozen, getNullablePoint, getPoint, getPointName, getPointUUID, getStamp, getStampString, getState, getSynthesizedString, getThisLogger, getValue, getVersion, hashCode, hasPointUUID, hasStamp, isAbsent, isCacheable, isDeleted, isExtrapolated, isFrozen, isInterpolated, isNormalized, isPresent, isSynthesized, morph, normalized, pointString, readMap, reset, restore, restore, sameValueAs, setFrozen, setPointName, setPointUUID, setStamp, setState, setValue, setVersion, thawed, toDouble, toLong, toString, toString, updateStore, validate, valueString, writeMap
public ResultValue()
This is needed for an Externalizable implementation. It is also used as a never matching reference.
public ResultValue(@Nonnull Point point, @Nonnull Optional<DateTime> stamp)
point
- The point definition.stamp
- The optional time stamp of the value.protected ResultValue(@Nonnull ResultValue other)
other
- The other instance.public final void addInputValue(@Nonnull PointValue inputValue)
inputValue
- The new input value.public ResultValue copy()
copy
in class PointValue
@Nonnull @CheckReturnValue public final List<PointValue> getInputValues()
@CheckReturnValue public final boolean isFetched()
@CheckReturnValue public boolean isReplaceable()
public ResultValue morph(Optional<UUID> uuid)
morph
in class PointValue
uuid
- The other point's optional UUID.public void readExternal(ObjectInput input) throws IOException
readExternal
in interface Externalizable
readExternal
in class PointValue
IOException
public final void setFetched(boolean fetched)
fetched
- The fetched indicator.public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class PointValue
IOException
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.