Class KVPair

java.lang.Object
io.permazen.kv.KVPair

public class KVPair extends Object
A key/value pair.

Instances are immutable and thread-safe.

  • Constructor Details

  • Method Details

    • getKey

      public ByteData getKey()
      Get the key.
      Returns:
      the key
    • getValue

      public ByteData getValue()
      Get the value.
      Returns:
      the value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object