#ifndef KEYVALUE_H
#define KEYVALUE_H
#include "common.h"
+#include "IoTString.h"
/**
* KeyValue entry for Slot.
* @version 1.0
*/
-class KeyValue { /*extends Entry */
+class KeyValue {/*extends Entry */
private:
IoTString *key;
IoTString *value;
};
KeyValue *KeyValue_decode(ByteBuffer *bb);
-unsigned int hashKeyValue(KeyValue *kv);
-bool equalsKeyValue(KeyValue *a, KeyValue *b);
-#endif
+
+inline unsigned int hashKeyValue(KeyValue *a) {
+ return a->getKey()->hashValue();
+}
+
+inline bool KeyValueEquals(KeyValue *a, KeyValue *b) {
+ return a->getKey()->equals(b->getKey());
+}
+#endif