|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.chars.AbstractChar2ByteMap
it.unimi.dsi.fastutil.chars.Char2ByteMaps.Singleton
An immutable class representing a type-specific singleton map.
This class may be useful to implement your own in case you subclass a type-specific map.
Nested Class Summary |
Nested classes inherited from class it.unimi.dsi.fastutil.chars.AbstractChar2ByteMap |
AbstractChar2ByteMap.BasicEntry |
Nested classes inherited from class it.unimi.dsi.fastutil.chars.Char2ByteMap |
Char2ByteMap.Entry |
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
Object |
clone()
|
boolean |
containsKey(char k)
Checks whether the given value is contained in keySet() . |
boolean |
containsValue(byte v)
Checks whether the given value is contained in values() . |
Set |
entrySet()
|
byte |
get(char k)
Returns the value to which the given key is mapped. |
Set |
keySet()
Returns a type-specific-set view of the keys of this map. |
void |
putAll(Map m)
Puts all pairs in the given map. |
int |
size()
|
Collection |
values()
Returns a type-specific-set view of the values of this map. |
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractChar2ByteMap |
clear, containsKey, containsValue, defaultReturnValue, defaultReturnValue, equals, get, getDefRetValue, hashCode, isEmpty, put, put, remove, remove, setDefRetValue, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long serialVersionUID
Method Detail |
public boolean containsKey(char k)
AbstractChar2ByteMap
AbstractChar2ByteMap.keySet()
.
containsKey
in interface Char2ByteMap
containsKey
in class AbstractChar2ByteMap
public boolean containsValue(byte v)
AbstractChar2ByteMap
AbstractChar2ByteMap.values()
.
containsValue
in interface Char2ByteMap
containsValue
in class AbstractChar2ByteMap
public void putAll(Map m)
AbstractChar2ByteMap
putAll
in interface Map
putAll
in class AbstractChar2ByteMap
m
- a map.public Set entrySet()
entrySet
in interface Map
public Set keySet()
AbstractChar2ByteMap
The view is backed by the set returned by Map.entrySet()
. Note that
no attempt is made at caching the result of this method, as this would
require adding some attributes that lightweight implementations would
not need. Subclasses may easily override this policy by calling
this method and caching the result, but implementors are encouraged to
write more efficient ad-hoc implementations.
keySet
in interface Map
keySet
in class AbstractChar2ByteMap
public Collection values()
AbstractChar2ByteMap
The view is backed by the set returned by Map.entrySet()
. Note that
no attempt is made at caching the result of this method, as this would
require adding some attributes that lightweight implementations would
not need. Subclasses may easily override this policy by calling
this method and caching the result, but implementors are encouraged to
write more efficient ad-hoc implementations.
values
in interface Map
values
in class AbstractChar2ByteMap
public byte get(char k)
Char2ByteMap
get
in interface Char2ByteMap
k
- the key.
Map.get(Object)
public int size()
size
in interface Map
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |