Function<java.lang.Short,java.lang.Boolean>, Short2BooleanFunction, Short2BooleanMap, java.io.Serializable, java.lang.Cloneable, java.util.function.Function<java.lang.Short,java.lang.Boolean>, java.util.function.IntPredicate, java.util.Map<java.lang.Short,java.lang.Boolean>Short2BooleanSortedMaps.Singletonpublic static class Short2BooleanMaps.Singleton extends Short2BooleanFunctions.Singleton implements Short2BooleanMap, java.io.Serializable, java.lang.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 | Method | Description |
|---|---|---|
boolean |
containsValue(boolean v) |
Returns
true if this map maps one or more keys to the specified
value. |
boolean |
containsValue(java.lang.Object ov) |
Deprecated.
Please use the corresponding type-specific method instead.
|
ObjectSet<java.util.Map.Entry<java.lang.Short,java.lang.Boolean>> |
entrySet() |
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
equals(java.lang.Object o) |
|
int |
hashCode() |
|
boolean |
isEmpty() |
|
ShortSet |
keySet() |
|
void |
putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> m) |
|
ObjectSet<Short2BooleanMap.Entry> |
short2BooleanEntrySet() |
Returns a type-specific set view of the mappings contained in this map.
|
java.lang.String |
toString() |
|
BooleanCollection |
values() |
defaultReturnValue, defaultReturnValueget, put, remove, testclone, containsKey, get, sizeclear, 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, sizepublic 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(java.lang.Object ov)
containsValue in interface java.util.Map<java.lang.Short,java.lang.Boolean>containsValue in interface Short2BooleanMappublic void putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Boolean> m)
putAll in interface java.util.Map<java.lang.Short,java.lang.Boolean>public ObjectSet<Short2BooleanMap.Entry> short2BooleanEntrySet()
Short2BooleanMap
This 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<java.util.Map.Entry<java.lang.Short,java.lang.Boolean>> entrySet()
Note that this specification strengthens the one given in
Map.entrySet().
entrySet in interface java.util.Map<java.lang.Short,java.lang.Boolean>entrySet in interface Short2BooleanMapMap.entrySet()public ShortSet keySet()
Short2BooleanMap
Note that this specification strengthens the one given in
Map.keySet().
keySet in interface java.util.Map<java.lang.Short,java.lang.Boolean>keySet in interface Short2BooleanMapMap.keySet()public BooleanCollection values()
Short2BooleanMap
Note that this specification strengthens the one given in
Map.values().
values in interface java.util.Map<java.lang.Short,java.lang.Boolean>values in interface Short2BooleanMapMap.values()public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Short,java.lang.Boolean>public int hashCode()
hashCode in interface java.util.Map<java.lang.Short,java.lang.Boolean>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Short,java.lang.Boolean>equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object