Interface Object2ReferenceMap<K,​V>

All Superinterfaces:
Function<K,​V>, Function<K,​V>, Map<K,​V>, Object2ReferenceFunction<K,​V>
All Known Subinterfaces:
Object2ReferenceSortedMap<K,​V>
All Known Implementing Classes:
AbstractObject2ReferenceMap, AbstractObject2ReferenceSortedMap, Object2ReferenceArrayMap, Object2ReferenceAVLTreeMap, Object2ReferenceLinkedOpenCustomHashMap, Object2ReferenceLinkedOpenHashMap, Object2ReferenceMaps.EmptyMap, Object2ReferenceMaps.Singleton, Object2ReferenceMaps.SynchronizedMap, Object2ReferenceMaps.UnmodifiableMap, Object2ReferenceOpenCustomHashMap, Object2ReferenceOpenHashMap, Object2ReferenceRBTreeMap, Object2ReferenceSortedMaps.EmptySortedMap, Object2ReferenceSortedMaps.Singleton, Object2ReferenceSortedMaps.SynchronizedSortedMap, Object2ReferenceSortedMaps.UnmodifiableSortedMap

public interface Object2ReferenceMap<K,​V>
extends Object2ReferenceFunction<K,​V>, Map<K,​V>
A type-specific Map; provides some additional methods that use polymorphism to avoid (un)boxing, and handling of a default return value.

Besides extending the corresponding type-specific function, this interface strengthens Map.entrySet(), keySet() and values(). Moreover, a number of methods, such as size(), defaultReturnValue(), etc., are un-defaulted as their function default do not make sense for a map. Maps returning entry sets of type Object2ReferenceMap.FastEntrySet support also fast iteration.

A submap or subset may or may not have an independent default return value (which however must be initialized to the default return value of the originator).

See Also:
Map