Package 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
Modifier and TypeMethodDescriptionboolean
Returns an opaque unique String that can be used to identify this tuple.int
hashCode()
Returns a int hashcode for this KeyValue. hashcodes may collide for complex keys in large result sets.
-
Method Details
-
equals
-
hashCode
int hashCode()Returns a int hashcode for this KeyValue. hashcodes may collide for complex keys in large result sets. -
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
-