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 int
compareTo(KV<K,V> that)
boolean
equals(Object o)
int
hashCode()
boolean
isNullKey()
K
key()
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.Long
timestamp()
org.apache.kafka.streams.KeyValue<K,V>
toKafkaKeyValue()
String
toString()
V
value()
-