7 * KeyValue entry for Slot.
8 * @author Brian Demsky <bdemsky@uci.edu>
12 class KeyValue {/*extends Entry */
18 KeyValue(IoTString *_key, IoTString *_value) :
24 IoTString *getKey() { return key; }
25 IoTString *getValue() { return value; }
26 void encode(ByteBuffer *bb);
31 KeyValue *KeyValue_decode(ByteBuffer *bb);
33 inline unsigned int hashKeyValue(KeyValue *a) {
34 return a->getKey()->hashValue();
37 inline bool KeyValueEquals(KeyValue *a, KeyValue *b) {
38 return a->getKey()->equals(b->getKey());