it.unimi.dsi.fastutil.objects
Interface Reference2ObjectMap

All Superinterfaces:
Map
All Known Subinterfaces:
Reference2ObjectSortedMap
All Known Implementing Classes:
AbstractReference2ObjectMap, Reference2ObjectLinkedOpenHashMap, Reference2ObjectOpenHashMap

public interface Reference2ObjectMap
extends Map

A type-specific Map; provides some additional methods that use polymorphism to reduce type juggling.

See Also:
Map

Nested Class Summary
static interface Reference2ObjectMap.Entry
          A type-specific Map.Entry; provides some additional methods to access its content reducing type juggling.
 
Method Summary
 Object defaultReturnValue()
          Gets the default return value.
 void defaultReturnValue(Object rv)
          Sets the default return value.
 Object getDefRetValue()
          Deprecated. As of fastutil 2.0, replaced by defaultReturnValue().
 void setDefRetValue(Object rv)
          Deprecated. As of fastutil 2.0, replaced by defaultReturnValue().
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

setDefRetValue

public void setDefRetValue(Object rv)
Deprecated. As of fastutil 2.0, replaced by defaultReturnValue().

Sets the default return value. This value is returned by get(), put() and remove() to denote that the map does not contain the specified key. It is 0/false/null by default.

Parameters:
rv - the new default return value.
See Also:
getDefRetValue(), defaultReturnValue()

getDefRetValue

public Object getDefRetValue()
Deprecated. As of fastutil 2.0, replaced by defaultReturnValue().

Gets the default return value.

Returns:
the current default return value.
See Also:
defaultReturnValue()

defaultReturnValue

public void defaultReturnValue(Object rv)
Sets the default return value. This value is returned by get(), put() and remove() to denote that the map does not contain the specified key. It is 0/false/null by default.

Parameters:
rv - the new default return value.
See Also:
defaultReturnValue()

defaultReturnValue

public Object defaultReturnValue()
Gets the default return value.

Returns:
the current default return value.