|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.ints.AbstractInt2DoubleMap
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.ints.Int2DoubleMap |
Int2DoubleMap.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. |
double |
defaultReturnValue()
Gets the default return value. |
void |
defaultReturnValue(double rv)
Sets the default return value. |
boolean |
equals(Object o)
|
double |
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(double 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.ints.Int2DoubleMap |
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(double rv)
Int2DoubleMap
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 Int2DoubleMap
rv
- the new default return value.Int2DoubleMap.getDefRetValue()
,
Int2DoubleMap.defaultReturnValue()
public double getDefRetValue()
Int2DoubleMap
getDefRetValue
in interface Int2DoubleMap
Int2DoubleMap.defaultReturnValue()
public void defaultReturnValue(double rv)
Int2DoubleMap
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 Int2DoubleMap
rv
- the new default return value.Int2DoubleMap.defaultReturnValue()
public double defaultReturnValue()
Int2DoubleMap
defaultReturnValue
in interface Int2DoubleMap
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 |