public static class Short2BooleanMaps.Singleton extends Short2BooleanFunctions.Singleton implements Short2BooleanMap, Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific map.
Short2BooleanMap.Entry, Short2BooleanMap.FastEntrySet| Modifier and Type | Field and Description |
|---|---|
protected ObjectSet<Short2BooleanMap.Entry> |
entries |
protected ShortSet |
keys |
protected BooleanCollection |
values |
key, valuedefRetValue| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(short key,
boolean value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(boolean v)
Returns
true if this map maps one or more keys to the specified value. |
boolean |
containsValue(Object ov)
Deprecated.
Please use the corresponding type-specific method instead.
|
ObjectSet<Map.Entry<Short,Boolean>> |
entrySet()
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
ShortSet |
keySet() |
void |
putAll(Map<? extends Short,? extends Boolean> m) |
ObjectSet<Short2BooleanMap.Entry> |
short2BooleanEntrySet()
Returns a type-specific set view of the mappings contained in this map.
|
String |
toString() |
BooleanCollection |
values() |
clone, containsKey, get, sizedefaultReturnValue, defaultReturnValuefinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, defaultReturnValue, defaultReturnValue, get, getOrDefault, getOrDefault, merge, merge, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, sizeget, put, remove, testand, negate, orforEach, replaceAllprotected transient ObjectSet<Short2BooleanMap.Entry> entries
protected transient ShortSet keys
protected transient BooleanCollection values
public boolean containsValue(boolean v)
Short2BooleanMaptrue if this map maps one or more keys to the specified value.containsValue in interface Short2BooleanMapMap.containsValue(Object)@Deprecated public boolean containsValue(Object ov)
containsValue in interface Short2BooleanMapcontainsValue in interface Map<Short,Boolean>public ObjectSet<Short2BooleanMap.Entry> short2BooleanEntrySet()
Short2BooleanMapThis method is necessary because there is no inheritance along
type parameters: it is thus impossible to strengthen Map.entrySet()
so that it returns an ObjectSet
of type-specific entries (the latter makes it possible to
access keys and values with type-specific methods).
short2BooleanEntrySet in interface Short2BooleanMapMap.entrySet()@Deprecated public ObjectSet<Map.Entry<Short,Boolean>> entrySet()
Note that this specification strengthens the one given in Map.entrySet().
entrySet in interface Short2BooleanMapentrySet in interface Map<Short,Boolean>Map.entrySet()public ShortSet keySet()
Short2BooleanMapNote that this specification strengthens the one given in Map.keySet().
keySet in interface Short2BooleanMapkeySet in interface Map<Short,Boolean>Map.keySet()public BooleanCollection values()
Short2BooleanMapNote that this specification strengthens the one given in Map.values().
values in interface Short2BooleanMapvalues in interface Map<Short,Boolean>Map.values()public int hashCode()
public boolean equals(Object o)
Copyright © 2020. All rights reserved.