public static class Reference2BooleanMaps.EmptyMap<K> extends Reference2BooleanFunctions.EmptyFunction<K> implements Reference2BooleanMap<K>, java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific map.
Reference2BooleanMap.Entry<K>, Reference2BooleanMap.FastEntrySet<K>defRetValue| Modifier | Constructor and Description |
|---|---|
protected |
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
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.
|
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.BiConsumer<? super K,? super java.lang.Boolean> consumer) |
boolean |
getOrDefault(java.lang.Object key,
boolean defaultValue)
Returns the value to which the specified key is mapped, or the
defaultValue if this
map contains no mapping for the key. |
java.lang.Boolean |
getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue)
Deprecated.
|
int |
hashCode() |
boolean |
isEmpty() |
it.unimi.dsi.fastutil.objects.ReferenceSet<K> |
keySet() |
void |
putAll(java.util.Map<? extends K,? extends java.lang.Boolean> m) |
it.unimi.dsi.fastutil.objects.ObjectSet<Reference2BooleanMap.Entry<K>> |
reference2BooleanEntrySet()
Returns a type-specific set view of the mappings contained in this map.
|
java.lang.String |
toString() |
it.unimi.dsi.fastutil.booleans.BooleanCollection |
values() |
clear, containsKey, defaultReturnValue, defaultReturnValue, getBoolean, sizefinalize, getClass, notify, notifyAll, wait, wait, waitclear, computeBoolean, computeBooleanIfAbsent, computeBooleanIfAbsentPartial, computeBooleanIfPresent, computeIfAbsent, computeIfAbsent, containsKey, defaultReturnValue, defaultReturnValue, entrySet, get, merge, put, putIfAbsent, remove, remove, replace, replace, sizeandThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, getBoolean, put, removeBoolean, testpublic boolean containsValue(boolean v)
Reference2BooleanMaptrue if this map maps one or more keys to the specified value.containsValue in interface Reference2BooleanMap<K>Map.containsValue(Object)@Deprecated
public java.lang.Boolean getOrDefault(java.lang.Object key,
java.lang.Boolean defaultValue)
Reference2BooleanMapThis default implementation just delegates to the corresponding Map method.
getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2BooleanFunction<K>getOrDefault in interface Reference2BooleanMap<K>getOrDefault in interface java.util.Map<K,java.lang.Boolean>public boolean getOrDefault(java.lang.Object key,
boolean defaultValue)
Reference2BooleanMapdefaultValue if this
map contains no mapping for the key.getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2BooleanFunction<K>getOrDefault in interface Reference2BooleanMap<K>getOrDefault in class Reference2BooleanFunctions.EmptyFunction<K>key - the key.defaultValue - the default mapping of the key.defaultValue if this map contains no mapping for the key.Map.getOrDefault(Object, Object)@Deprecated public boolean containsValue(java.lang.Object ov)
containsValue in interface Reference2BooleanMap<K>containsValue in interface java.util.Map<K,java.lang.Boolean>public void putAll(java.util.Map<? extends K,? extends java.lang.Boolean> m)
putAll in interface java.util.Map<K,java.lang.Boolean>public it.unimi.dsi.fastutil.objects.ObjectSet<Reference2BooleanMap.Entry<K>> reference2BooleanEntrySet()
Reference2BooleanMapThis 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).
reference2BooleanEntrySet in interface Reference2BooleanMap<K>Map.entrySet()public it.unimi.dsi.fastutil.objects.ReferenceSet<K> keySet()
Reference2BooleanMapkeySet in interface Reference2BooleanMap<K>keySet in interface java.util.Map<K,java.lang.Boolean>Map.keySet()public it.unimi.dsi.fastutil.booleans.BooleanCollection values()
Reference2BooleanMapvalues in interface Reference2BooleanMap<K>values in interface java.util.Map<K,java.lang.Boolean>Map.values()public void forEach(java.util.function.BiConsumer<? super K,? super java.lang.Boolean> consumer)
forEach in interface Reference2BooleanMap<K>forEach in interface java.util.Map<K,java.lang.Boolean>public java.lang.Object clone()
clone in class Reference2BooleanFunctions.EmptyFunction<K>public boolean isEmpty()
isEmpty in interface java.util.Map<K,java.lang.Boolean>public int hashCode()
hashCode in interface java.util.Map<K,java.lang.Boolean>hashCode in class Reference2BooleanFunctions.EmptyFunction<K>public boolean equals(java.lang.Object o)
equals in interface java.util.Map<K,java.lang.Boolean>equals in class Reference2BooleanFunctions.EmptyFunction<K>public java.lang.String toString()
toString in class Reference2BooleanFunctions.EmptyFunction<K>