public final class MapEntries extends Object implements IdentifiedDataSerializable
Constructor and Description |
---|
MapEntries() |
MapEntries(int initialSize) |
MapEntries(List<Map.Entry<Data,Data>> entries) |
Modifier and Type | Method and Description |
---|---|
void |
add(Data key,
Data value) |
void |
clear() |
List<Map.Entry<Data,Data>> |
entries() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
Data |
getKey(int index) |
Data |
getValue(int index) |
boolean |
isEmpty() |
void |
putAllToList(Collection<Map.Entry<Data,Data>> targetList) |
<K,V> void |
putAllToMap(SerializationService serializationService,
Map<K,V> map) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
int |
size() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Data getKey(int index)
public Data getValue(int index)
public int size()
public boolean isEmpty()
public void clear()
public void putAllToList(Collection<Map.Entry<Data,Data>> targetList)
public <K,V> void putAllToMap(SerializationService serializationService, Map<K,V> map)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public 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.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.