Package oracle.kv

# Class KeyValue

java.lang.Object
oracle.kv.KeyValue

public class KeyValue extends Object
Represents a key/value pair.

The KeyValue is used as element of input argument EntryStream<KeyValue> for `put`, the key and value properties will always be non-null.

Since:
  4.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `KeyValue(Key key, Value value)`
  Creates a KeyValue, key and value should be non-null.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Key`
  `getKey()`
  Returns the Key part of the KV pair.
  `Value`
  `getValue()`
  Returns the Value part of the KV pair.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### KeyValue

    public KeyValue(Key key, Value value)
    Creates a KeyValue, key and value should be non-null.

- ## Method Details

  - ### getKey

    public Key getKey()
    Returns the Key part of the KV pair.

  - ### getValue

    public Value getValue()
    Returns the Value part of the KV pair.

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`