|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.floats.AbstractFloat2ObjectMap
An abstract class providing basic methods for maps implementing a type-specific interface.
In particular, this class provide containsKey(Object)
and
Map.containsValue(Object)
methods that just call the type-specific counterpart.
Nested Class Summary |
Nested classes inherited from class it.unimi.dsi.fastutil.floats.Float2ObjectMap |
Float2ObjectMap.Entry |
Method Summary | |
boolean |
containsKey(Object ok)
Delegates to the corresponding type-specific method. |
Object |
defaultReturnValue()
Gets the default return value. |
void |
defaultReturnValue(Object rv)
Sets the default return value. |
boolean |
equals(Object o)
|
Object |
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(Object 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.floats.Float2ObjectMap |
containsKey, get, put, remove |
Methods inherited from interface java.util.Map |
clear, containsValue, entrySet, get, isEmpty, keySet, put, remove, size, values |
Method Detail |
public boolean containsKey(Object ok)
containsKey
in interface Map
public void setDefRetValue(Object rv)
Float2ObjectMap
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 Float2ObjectMap
rv
- the new default return value.Float2ObjectMap.getDefRetValue()
,
Float2ObjectMap.defaultReturnValue()
public Object getDefRetValue()
Float2ObjectMap
getDefRetValue
in interface Float2ObjectMap
Float2ObjectMap.defaultReturnValue()
public void defaultReturnValue(Object rv)
Float2ObjectMap
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 Float2ObjectMap
rv
- the new default return value.Float2ObjectMap.defaultReturnValue()
public Object defaultReturnValue()
Float2ObjectMap
defaultReturnValue
in interface Float2ObjectMap
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 |