Function<java.lang.Short,V>, Short2ObjectFunction<V>, Short2ObjectMap<V>, java.io.Serializable, java.lang.Cloneable, java.util.function.Function<java.lang.Short,V>, java.util.function.IntFunction<V>, java.util.Map<java.lang.Short,V>Short2ObjectSortedMaps.EmptySortedMappublic static class Short2ObjectMaps.EmptyMap<V> extends Short2ObjectFunctions.EmptyFunction<V> implements Short2ObjectMap<V>, java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific map.
Short2ObjectMap.Entry<V>, Short2ObjectMap.FastEntrySet<V>| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
|
boolean |
containsValue(java.lang.Object v) |
|
boolean |
equals(java.lang.Object o) |
|
int |
hashCode() |
|
boolean |
isEmpty() |
|
ShortSet |
keySet() |
|
void |
putAll(java.util.Map<? extends java.lang.Short,? extends V> m) |
|
ObjectSet<Short2ObjectMap.Entry<V>> |
short2ObjectEntrySet() |
Returns a type-specific set view of the mappings contained in this map.
|
java.lang.String |
toString() |
|
ObjectCollection<V> |
values() |
apply, get, put, removeclear, containsKey, defaultReturnValue, defaultReturnValue, get, sizeclear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, defaultReturnValue, defaultReturnValue, entrySet, get, getOrDefault, getOrDefault, merge, merge, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, sizepublic boolean containsValue(java.lang.Object v)
containsValue in interface java.util.Map<java.lang.Short,V>public void putAll(java.util.Map<? extends java.lang.Short,? extends V> m)
putAll in interface java.util.Map<java.lang.Short,V>public ObjectSet<Short2ObjectMap.Entry<V>> short2ObjectEntrySet()
Short2ObjectMap
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).
short2ObjectEntrySet in interface Short2ObjectMap<V>Map.entrySet()public ShortSet keySet()
Short2ObjectMap
Note that this specification strengthens the one given in
Map.keySet().
keySet in interface java.util.Map<java.lang.Short,V>keySet in interface Short2ObjectMap<V>Map.keySet()public ObjectCollection<V> values()
Short2ObjectMap
Note that this specification strengthens the one given in
Map.values().
values in interface java.util.Map<java.lang.Short,V>values in interface Short2ObjectMap<V>Map.values()public java.lang.Object clone()
clone in class Short2ObjectFunctions.EmptyFunction<V>public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Short,V>public int hashCode()
hashCode in interface java.util.Map<java.lang.Short,V>hashCode in class Short2ObjectFunctions.EmptyFunction<V>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Short,V>equals in class Short2ObjectFunctions.EmptyFunction<V>public java.lang.String toString()
toString in class Short2ObjectFunctions.EmptyFunction<V>