package elephantdb.document;

public class KeyValDocument {
    public byte[] key;
    public byte[] value;

    public KeyValDocument() {
    }

    public KeyValDocument(byte[] key, byte[] value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null)
            return false;
        if (obj == this)
            return true;
        if (obj.getClass() != getClass())
            return false;

        KeyValDocument other = (KeyValDocument) obj;
        return (this.key.equals(other.key) && this.value.equals(other.value));
    }
}

@@ -23,16 +23,42 @@
 ument;%0A%0A
+import java.util.Arrays;%0A%0A
 public c
@@ -575,38 +575,60 @@
 rn (
-this.key.equals(other.key) && 
+Arrays.equals(this.key, other.key) && Arrays.equals(
 this
@@ -633,24 +633,18 @@
 is.value
-.equals(
+, 
 other.va

fix equals in KeyValDocument