cgl.imr.base
Class KeyValueMap

java.lang.Object
  extended by cgl.imr.base.KeyValueMap
All Implemented Interfaces:
TwisterSerializable

public class KeyValueMap
extends Object
implements TwisterSerializable


Constructor Summary
KeyValueMap()
           
 
Method Summary
 void addKeyValue(Key key, Value val)
           
 void fromBytes(byte[] bytes)
          Construct the object back from a previously serialized bytes.
 byte[] getBytes()
          Serialize the object and returns the bytes.
 Map<Key,Value> getKeyValues()
           
 void setKeyValues(Map<Key,Value> keyValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValueMap

public KeyValueMap()
Method Detail

addKeyValue

public void addKeyValue(Key key,
                        Value val)

fromBytes

public void fromBytes(byte[] bytes)
               throws SerializationException
Description copied from interface: TwisterSerializable
Construct the object back from a previously serialized bytes.

Specified by:
fromBytes in interface TwisterSerializable
Throws:
SerializationException

getBytes

public byte[] getBytes()
                throws SerializationException
Description copied from interface: TwisterSerializable
Serialize the object and returns the bytes.

Specified by:
getBytes in interface TwisterSerializable
Returns:
byte[] of serialized object.
Throws:
SerializationException

getKeyValues

public Map<Key,Value> getKeyValues()

setKeyValues

public void setKeyValues(Map<Key,Value> keyValues)


For comments and suggestions please send e-mail to