Deleted Redundent Files
[iotcloud.git] / src / java / iotcloud / KeyValue.java
index 51d84eb292caffd8abb3462d87a401990bb8a283..bed66a2cf436bcc56effb8f7c5f3f7eb726110eb 100644 (file)
@@ -1,6 +1,12 @@
 package iotcloud;
 import java.nio.ByteBuffer;
 
+/**
+ * KeyValue entry for Slot.
+ * @author Brian Demsky <bdemsky@uci.edu>
+ * @version 1.0
+ */
+
 class KeyValue extends Entry {
        private IoTString key;
        private IoTString value;
@@ -44,4 +50,12 @@ class KeyValue extends Entry {
        byte getType() {
                return Entry.TypeKeyValue;
        }
+
+       public String toString() {
+               return value.toString();
+       }
+
+       Entry getCopy(Slot s) {
+               return new KeyValue(s, key, value);
+       }
 }