K
- the key typeV
- the value typepublic abstract class ValueOptionMap<K,V extends ValueOption<V>> extends AbstractMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ValueOptionMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
void |
forEach(BiConsumer<? super K,? super V> action) |
abstract V |
get(Object key) |
static <T> Set<T> |
keys(T... keys)
Builds a key set.
|
abstract Set<K> |
keySet() |
V |
put(K key,
V value) |
int |
size() |
clear, clone, containsValue, equals, hashCode, isEmpty, putAll, remove, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
@SafeVarargs public static <T> Set<T> keys(T... keys)
T
- the key typekeys
- the sequence of keyspublic abstract V get(Object key)
get
in interface Map<K,V extends ValueOption<V>>
get
in class AbstractMap<K,V extends ValueOption<V>>
public V put(K key, V value)
put
in interface Map<K,V extends ValueOption<V>>
put
in class AbstractMap<K,V extends ValueOption<V>>
IllegalArgumentException
- if the given key is not in this mappublic abstract Set<K> keySet()
keySet
in interface Map<K,V extends ValueOption<V>>
keySet
in class AbstractMap<K,V extends ValueOption<V>>
public boolean containsKey(Object key)
containsKey
in interface Map<K,V extends ValueOption<V>>
containsKey
in class AbstractMap<K,V extends ValueOption<V>>
public Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V extends ValueOption<V>>
entrySet
in class AbstractMap<K,V extends ValueOption<V>>
public int size()
size
in interface Map<K,V extends ValueOption<V>>
size
in class AbstractMap<K,V extends ValueOption<V>>
public void forEach(BiConsumer<? super K,? super V> action)
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.