oracle.kv

## Class KeyValueVersion

- java.lang.Object
- - oracle.kv.KeyValueVersion

-     public class KeyValueVersion
      extends Object

  Represents a key/value pair along with its version.

  A KeyValueVersion instance is returned by methods such as `KVStore.storeIterator(Direction, int)` and `KVStore.multiGetIterator(Direction, int, Key, KeyRange, Depth)`. The key, version and value properties will always be non-null.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyValueVersion(Key key, Value value, Version version)` Creates a KeyValueVersion with non-null properties.

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### KeyValueVersion

          public KeyValueVersion(Key key,
                         Value value,
                         Version version)

      Creates a KeyValueVersion with non-null properties.

  - ### Method Detail

    - #### getKey

          public Key getKey()

      Returns the Key part of the KV pair.

    - #### getValue

          public Value getValue()

      Returns the Value part of the KV pair.

    - #### getVersion

          public Version getVersion()

      Returns the Version of the KV pair.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.