public interface KeyValueEntity
| Modifier and Type | Interface and Description |
|---|---|
static interface |
KeyValueEntity.KeyValueEntityProvider
A provider of
KeyValueEntity where it will return from two values where the first one is the key
and the second one is the value of the entity. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getKey()
the key
|
<K> K |
getKey(Class<K> clazz)
Alias to
Value.get(Class) |
<K> K |
getKey(TypeSupplier<K> typeSupplier)
Alias to
Value.get(TypeSupplier) |
Object |
getValue()
The value
|
<V> V |
getValue(Class<V> clazz)
Alias to
Value.get(Class) |
<V> V |
getValue(TypeSupplier<V> typeSupplier)
Alias to
Value.get(TypeSupplier) |
static <K,V> KeyValueEntity |
of(K key,
V value)
Creates a Key value instance
|
static <K,V> KeyValueEntity of(K key, V value)
K - the key typeV - the value typekey - the keyvalue - the valueKeyValueEntity instanceNullPointerException - when either key or value are nullObject getKey()
<K> K getKey(Class<K> clazz)
Value.get(Class)K - Value.get(Class)clazz - Value.get(Class)Value.get(Class)NullPointerException - see Value.get(Class)UnsupportedOperationException - see Value.get(Class)<K> K getKey(TypeSupplier<K> typeSupplier)
Value.get(TypeSupplier)K - Value.get(TypeSupplier)typeSupplier - Value.get(TypeSupplier)Value.get(TypeSupplier)NullPointerException - see Value.get(TypeSupplier)UnsupportedOperationException - see Value.get(TypeSupplier)<V> V getValue(Class<V> clazz)
Value.get(Class)V - Value.get(Class)clazz - Value.get(Class)Value.get(Class)NullPointerException - see Value.get(Class)UnsupportedOperationException - see Value.get(Class)<V> V getValue(TypeSupplier<V> typeSupplier)
Value.get(TypeSupplier)V - Value.get(TypeSupplier)typeSupplier - Value.get(TypeSupplier)Value.get(TypeSupplier)NullPointerException - see Value.get(TypeSupplier)UnsupportedOperationException - see Value.get(TypeSupplier)Copyright © 2017–2021 Eclipse Foundation. All rights reserved.