V
- value typepublic class BooleanMap<V> extends AbstractMap<Boolean,V> implements Serializable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
BooleanMap() |
BooleanMap(V falseValue,
V trueValue) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Boolean,V>> |
entrySet() |
V |
get(boolean key) |
V |
get(Object key) |
boolean |
isEmpty() |
Set<Boolean> |
keySet() |
V |
put(boolean key,
V value) |
V |
put(Boolean key,
V value) |
void |
putAll(Map<? extends Boolean,? extends V> m) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public int size()
public boolean isEmpty()
public boolean containsValue(Object value)
containsValue
in interface Map<Boolean,V>
containsValue
in class AbstractMap<Boolean,V>
public boolean containsKey(Object key)
containsKey
in interface Map<Boolean,V>
containsKey
in class AbstractMap<Boolean,V>
public V get(boolean key)
public void clear()
public Collection<V> values()
Copyright © 2018. All rights reserved.