@NotThreadSafe public final class ReplicatedValue extends VersionedValue
VersionedValue.Deleted, VersionedValue.Factory, VersionedValue.Purged
PointValue.Null
Modifier and Type | Field and Description |
---|---|
static String |
DELETED_FIELD
Deleted field key.
|
VERSION_FIELD
NULL, POINT_FIELD, STAMP_FIELD, STATE_FIELD, UUID_FIELD, VALUE_FIELD
SERIALIZABLE_MODE, SIMPLE_STRING_MODE
Constructor and Description |
---|
ReplicatedValue()
Constructs an instance.
|
ReplicatedValue(PointValue pointValue)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
ReplicatedValue |
copy()
Creates a copy of this point value.
|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isDeleted()
Asks if this point value is (going to be) deleted.
|
void |
readExternal(ObjectInput input)
Reads in an external representation of this.
|
void |
readMap(Map<String,Serializable> map)
Reads a map of the fields.
|
void |
setDeleted(boolean deleted)
Sets the deleted indicator.
|
void |
writeExternal(ObjectOutput output)
Writes out an external representation of this.
|
void |
writeMap(Map<String,Serializable> map)
Writes a map of the fields.
|
frozen, getStampString, getVersion, newVersion, setVersion, thawed
checkNotFrozen, clearStamp, confirm, copyValueFrom, decoded, denormalized, encoded, freeze, getNullablePoint, getPoint, getPointName, getPointUUID, getStamp, getState, getSynthesizedString, getThisLogger, getValue, hasPointUUID, hasStamp, isAbsent, isCacheable, isExtrapolated, isFrozen, isInterpolated, isNormalized, isPresent, isSynthesized, morph, morph, normalized, pointString, reset, restore, restore, sameValueAs, setFrozen, setPointName, setPointUUID, setStamp, setState, setValue, toDouble, toLong, toString, toString, updateStore, validate, valueString
public static final String DELETED_FIELD
public ReplicatedValue()
This is needed for an Externalizable implementation.
public ReplicatedValue(@Nonnull PointValue pointValue)
pointValue
- The original versioned point value.public ReplicatedValue copy()
copy
in class VersionedValue
public boolean equals(Object other)
equals
in class VersionedValue
public int hashCode()
hashCode
in class VersionedValue
public boolean isDeleted()
A subclass may override this method to supply this functionality.
isDeleted
in class PointValue
VersionedValue.Deleted.isDeleted()
public void readExternal(ObjectInput input) throws IOException
readExternal
in interface Externalizable
readExternal
in class VersionedValue
input
- The external representation.IOException
- When an I/O error occurs.public void readMap(Map<String,Serializable> map)
readMap
in interface Mappable
readMap
in class VersionedValue
map
- The source map.public void setDeleted(boolean deleted)
deleted
- The deleted indicator.public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class VersionedValue
output
- The external representation.IOException
- When an I/O error occurs.public void writeMap(Map<String,Serializable> map)
writeMap
in interface Mappable
writeMap
in class VersionedValue
map
- The destination map.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.