public class NestedProperty<K,V> extends Object implements KeyValueType<K,V>
Constructor and Description |
---|
NestedProperty(K property,
V value,
Class<V> type) |
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Gets the key from the pair.
|
Class<V> |
getType()
Gets the type from the pair.
|
V |
getValue()
Gets the value from the pair.
|
static <K> KeyValueType<K,Object> |
of(K key) |
static <K,V> KeyValueType<K,V> |
of(K key,
Class<V> type) |
static <K,V> KeyValueType<K,V> |
of(K key,
V value,
Class<V> type) |
public static <K,V> KeyValueType<K,V> of(K key, V value, Class<V> type)
public static <K,V> KeyValueType<K,V> of(K key, Class<V> type)
public static <K> KeyValueType<K,Object> of(K key)
public K getKey()
getKey
in interface KeyValueType<K,V>
public V getValue()
getValue
in interface KeyValueType<K,V>