public static class Char2IntMaps.Singleton extends Char2IntFunctions.Singleton implements Char2IntMap, java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific map.
Char2IntMap.Entry, Char2IntMap.FastEntrySet| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.objects.ObjectSet<Char2IntMap.Entry> |
entries |
protected it.unimi.dsi.fastutil.chars.CharSet |
keys |
protected it.unimi.dsi.fastutil.ints.IntCollection |
values |
key, valuedefRetValue| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(char key,
int value) |
| Modifier and Type | Method and Description |
|---|---|
it.unimi.dsi.fastutil.objects.ObjectSet<Char2IntMap.Entry> |
char2IntEntrySet()
Returns a type-specific set view of the mappings contained in this map.
|
boolean |
containsValue(int 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.
|
it.unimi.dsi.fastutil.objects.ObjectSet<java.util.Map.Entry<java.lang.Character,java.lang.Integer>> |
entrySet()
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isEmpty() |
it.unimi.dsi.fastutil.chars.CharSet |
keySet() |
void |
putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> m) |
java.lang.String |
toString() |
it.unimi.dsi.fastutil.ints.IntCollection |
values() |
clone, containsKey, get, getOrDefault, sizedefaultReturnValue, defaultReturnValuefinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsKey, defaultReturnValue, defaultReturnValue, forEach, get, getOrDefault, getOrDefault, merge, merge, mergeInt, mergeInt, put, putIfAbsent, putIfAbsent, remove, remove, remove, replace, replace, replace, replace, sizeandThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, get, put, removeprotected transient it.unimi.dsi.fastutil.objects.ObjectSet<Char2IntMap.Entry> entries
protected transient it.unimi.dsi.fastutil.chars.CharSet keys
protected transient it.unimi.dsi.fastutil.ints.IntCollection values
public boolean containsValue(int v)
Char2IntMaptrue if this map maps one or more keys to the specified value.containsValue in interface Char2IntMapMap.containsValue(Object)@Deprecated public boolean containsValue(java.lang.Object ov)
containsValue in interface Char2IntMapcontainsValue in interface java.util.Map<java.lang.Character,java.lang.Integer>public void putAll(java.util.Map<? extends java.lang.Character,? extends java.lang.Integer> m)
putAll in interface java.util.Map<java.lang.Character,java.lang.Integer>public it.unimi.dsi.fastutil.objects.ObjectSet<Char2IntMap.Entry> char2IntEntrySet()
Char2IntMapThis 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).
char2IntEntrySet in interface Char2IntMapMap.entrySet()@Deprecated public it.unimi.dsi.fastutil.objects.ObjectSet<java.util.Map.Entry<java.lang.Character,java.lang.Integer>> entrySet()
entrySet in interface Char2IntMapentrySet in interface java.util.Map<java.lang.Character,java.lang.Integer>Map.entrySet()public it.unimi.dsi.fastutil.chars.CharSet keySet()
Char2IntMapkeySet in interface Char2IntMapkeySet in interface java.util.Map<java.lang.Character,java.lang.Integer>Map.keySet()public it.unimi.dsi.fastutil.ints.IntCollection values()
Char2IntMapvalues in interface Char2IntMapvalues in interface java.util.Map<java.lang.Character,java.lang.Integer>Map.values()public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Character,java.lang.Integer>public int hashCode()
hashCode in interface java.util.Map<java.lang.Character,java.lang.Integer>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.Character,java.lang.Integer>equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object