Class KV<K,V>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.model.KV<K,V>
-
- Type Parameters:
K- the key type.V- the value type.
- All Implemented Interfaces:
Serializable,Comparable<KV<K,V>>
public class KV<K,V> extends Object implements Comparable<KV<K,V>>, Serializable
Simple key/value pair.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(KV<K,V> that)booleanequals(Object o)inthashCode()booleanisNullKey()Kkey()Optional<K>nullableKey()Optional<V>nullableValue()static <K,V>
KV<K,V>of(K key, V value)static <K,V>
KV<K,V>of(K key, V value, Long timestamp)static <K,V>
KV<K,V>of(org.apache.kafka.streams.KeyValue<K,V> kv)KV<V,K>swap()Swaps the key and value.Longtimestamp()org.apache.kafka.streams.KeyValue<K,V>toKafkaKeyValue()StringtoString()Vvalue()
-