Package bftsmart.demo.map
Class MapMessage<K,V>
- java.lang.Object
-
- bftsmart.demo.map.MapMessage<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
public class MapMessage<K,V> extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
MapMessage<K,V>fromBytes(byte[] rep)
K
getKey()
java.util.Set<K>
getKeySet()
int
getSize()
MapRequestType
getType()
V
getValue()
void
setKey(java.lang.Object key)
void
setKeySet(java.lang.Object keySet)
void
setSize(int size)
void
setType(MapRequestType type)
void
setValue(java.lang.Object value)
static <K,V>
byte[]toBytes(MapMessage<K,V> message)
-
-
-
Method Detail
-
toBytes
public static <K,V> byte[] toBytes(MapMessage<K,V> message) throws java.io.IOException
- Throws:
java.io.IOException
-
fromBytes
public static <K,V> MapMessage<K,V> fromBytes(byte[] rep) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
getType
public MapRequestType getType()
-
getKey
public K getKey()
-
getValue
public V getValue()
-
setKey
public void setKey(java.lang.Object key)
-
setValue
public void setValue(java.lang.Object value)
-
setKeySet
public void setKeySet(java.lang.Object keySet)
-
setSize
public void setSize(int size)
-
setType
public void setType(MapRequestType type)
-
getKeySet
public java.util.Set<K> getKeySet()
-
getSize
public int getSize()
-
-