V
- the type of valuepublic abstract class AbstractCollectionMergingValueImpl<V extends Collection,T extends AbstractCollectionMergingValueImpl<V,T>> extends Object implements MergingValue<V>, SerializationServiceAware, IdentifiedDataSerializable
MergingValue
for data structures with collections.Constructor and Description |
---|
AbstractCollectionMergingValueImpl() |
AbstractCollectionMergingValueImpl(SerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
<DV> DV |
getDeserializedValue()
Returns the deserialized merging value.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID 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)
Gets the SerializationService reference injected.
|
T |
setValue(V value) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId
public AbstractCollectionMergingValueImpl()
public AbstractCollectionMergingValueImpl(SerializationService serializationService)
public V getValue()
MergingValue
getValue
in interface MergingValue<V extends Collection>
public <DV> DV getDeserializedValue()
MergingValue
getDeserializedValue
in interface MergingValue<V extends Collection>
DV
- the type of the deserialized valuepublic void setSerializationService(SerializationService serializationService)
SerializationServiceAware
setSerializationService
in interface SerializationServiceAware
serializationService
- the SerializationService referencepublic 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
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.