|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.bytes.AbstractByte2CharMap
An abstract class providing basic methods for maps implementing a type-specific interface.
In particular, this class provide containsKey(Object)
and
containsValue(Object)
methods that just call the type-specific counterpart.
Nested Class Summary |
Nested classes inherited from class it.unimi.dsi.fastutil.bytes.Byte2CharMap |
Byte2CharMap.Entry |
Method Summary | |
boolean |
containsKey(Object ok)
Delegates to the corresponding type-specific method. |
boolean |
containsValue(Object ov)
Delegates to the corresponding type-specific method. |
char |
defaultReturnValue()
Gets the default return value. |
void |
defaultReturnValue(char rv)
Sets the default return value. |
boolean |
equals(Object o)
|
char |
getDefRetValue()
Gets the default return value. |
int |
hashCode()
Returns a hash code for this map. |
void |
putAll(Map m)
Puts all pairs in the given map. |
void |
setDefRetValue(char rv)
Sets the default return value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.bytes.Byte2CharMap |
containsKey, containsValue, get, put, remove |
Methods inherited from interface java.util.Map |
clear, entrySet, get, isEmpty, keySet, put, remove, size, values |
Method Detail |
public boolean containsKey(Object ok)
containsKey
in interface Map
public boolean containsValue(Object ov)
containsValue
in interface Map
public void setDefRetValue(char rv)
Byte2CharMap
get()
, put()
and remove()
to denote
that the map does not contain the specified key. It is 0/false
/null
by default.
setDefRetValue
in interface Byte2CharMap
rv
- the new default return value.Byte2CharMap.getDefRetValue()
,
Byte2CharMap.defaultReturnValue()
public char getDefRetValue()
Byte2CharMap
getDefRetValue
in interface Byte2CharMap
Byte2CharMap.defaultReturnValue()
public void defaultReturnValue(char rv)
Byte2CharMap
get()
, put()
and
remove()
to denote that the map does not contain the
specified key. It is 0/false
/null
by default.
defaultReturnValue
in interface Byte2CharMap
rv
- the new default return value.Byte2CharMap.defaultReturnValue()
public char defaultReturnValue()
Byte2CharMap
defaultReturnValue
in interface Byte2CharMap
public void putAll(Map m)
putAll
in interface Map
m
- a map.public int hashCode()
hashCode
in interface Map
public boolean equals(Object o)
equals
in interface Map
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |