V
- the type of valuepublic class MergingValueHolderImpl<V> extends Object implements MergingValueHolder<V>, IdentifiedDataSerializable
MergingValueHolder
.Constructor and Description |
---|
MergingValueHolderImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
getDeserializedValue()
Returns the deserialized merging value.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
V |
getValue()
Returns the merging value in the in-memory format of the backing data structure.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setSerializationService(SerializationService serializationService)
Sets the
SerializationService to deserialize the value on demand. |
MergingValueHolderImpl<V> |
setValue(V value) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public V getValue()
MergingValueHolder
getValue
in interface MergingValueHolder<V>
public Object getDeserializedValue()
MergingValueHolder
getDeserializedValue
in interface MergingValueHolder<V>
public MergingValueHolderImpl<V> setValue(V value)
public void setSerializationService(SerializationService serializationService)
MergingValueHolder
SerializationService
to deserialize the value on demand.setSerializationService
in interface MergingValueHolder<V>
serializationService
- the serialization servicepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.