com.streambase.liveview.client

## Interface KeyValue

- All Known Implementing Classes:
    HashableTuple

      public interface KeyValue

  KeyValue represents a specific value of the primary key, as taken from the Tuple in a specific Table, including if the Table has a complex key involving multiple fields. KeyValues can be compared using .equals and can be used as the key in HashMaps, such that if you get a new record, a KeyValue extracted from it will match to a KeyValue from an existing record.
  Since:
    1.6

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object other)`
    `String` | `getValueAsUniqueString()` Returns an opaque unique String that can be used to identify this tuple.
    `int` | `hashCode()` Returns a int hashcode for this KeyValue.

- - ### Method Detail

    - #### equals

          boolean equals(Object other)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          int hashCode()

      Returns a int hashcode for this KeyValue. hashcodes may collide for complex keys in large result sets.
      Overrides:
        `hashCode` in class `Object`
      Returns:
        32 bit hashcode for this KeyValue

    - #### getValueAsUniqueString

          String getValueAsUniqueString()

      Returns an opaque unique String that can be used to identify this tuple. What this String looks like may change from release to release so should not be persisted.
      Returns:
        - Unique String that identifies this KeyValue

Copyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.