@NotThreadSafe public class NormalizedValue extends PointValue
Instances of this class hold normalized point values. It can produce a denormalized version of itself.
NULL, POINT_FIELD, STAMP_FIELD, STATE_FIELD, UUID_FIELD, VALUE_FIELDSERIALIZABLE_MODE, SIMPLE_STRING_MODE| Constructor and Description |
|---|
NormalizedValue()
Constructs an instance.
|
NormalizedValue(Point point,
Optional<DateTime> stamp,
Serializable state,
Serializable value)
Constructs an instance.
|
NormalizedValue(PointValue pointValue)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
NormalizedValue |
copy()
Creates a copy of this point value.
|
PointValue |
denormalized()
Denormalizes this.
|
boolean |
isNormalized()
Asks if this point value is normalized.
|
NormalizedValue |
normalized()
Normalizes this point value.
|
checkNotFrozen, clearStamp, confirm, copyValueFrom, decoded, encoded, equals, freeze, frozen, getNullablePoint, getPoint, getPointName, getPointUUID, getStamp, getStampString, getState, getSynthesizedString, getThisLogger, getValue, getVersion, hashCode, hasPointUUID, hasStamp, isAbsent, isCacheable, isDeleted, isExtrapolated, isFrozen, isInterpolated, isPresent, isSynthesized, morph, morph, pointString, readExternal, readMap, reset, restore, restore, sameValueAs, setFrozen, setPointName, setPointUUID, setStamp, setState, setValue, setVersion, thawed, toDouble, toLong, toString, toString, updateStore, validate, valueString, writeExternal, writeMappublic NormalizedValue()
This is needed for an Externalizable implementation.
public NormalizedValue(@Nonnull
PointValue pointValue)
pointValue - The source point value.public NormalizedValue(@Nonnull
Point point,
@Nonnull
Optional<DateTime> stamp,
@Nullable
Serializable state,
@Nullable
Serializable value)
point - The Point definition.stamp - The optional time stamp of the value.state - The state.value - The value.public NormalizedValue copy()
copy in class PointValuepublic PointValue denormalized()
This method is overriden by NormalizedValue. Other point value
classes, including this one, assume that their value is not
normalized.
The point's content instance is called to perform the actual denormalization.
denormalized in class PointValuepublic final boolean isNormalized()
isNormalized in class PointValuepublic final NormalizedValue normalized()
The point's content instance is called to perform the actual normalization.
This is already normalized.
normalized in class PointValueCopyright © 2003-2019 Serge Brisson. All Rights Reserved.