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