Interface Reference2ReferenceMap<K,​V>

All Superinterfaces:
Function<K,​V>, Function<K,​V>, Map<K,​V>, Reference2ReferenceFunction<K,​V>
All Known Subinterfaces:
Reference2ReferenceSortedMap<K,​V>
All Known Implementing Classes:
AbstractReference2ReferenceMap, AbstractReference2ReferenceSortedMap, Reference2ReferenceArrayMap, Reference2ReferenceLinkedOpenHashMap, Reference2ReferenceMaps.EmptyMap, Reference2ReferenceMaps.Singleton, Reference2ReferenceMaps.SynchronizedMap, Reference2ReferenceMaps.UnmodifiableMap, Reference2ReferenceOpenCustomHashMap, Reference2ReferenceOpenHashMap, Reference2ReferenceSortedMaps.EmptySortedMap, Reference2ReferenceSortedMaps.Singleton, Reference2ReferenceSortedMaps.SynchronizedSortedMap, Reference2ReferenceSortedMaps.UnmodifiableSortedMap

public interface Reference2ReferenceMap<K,​V>
extends Reference2ReferenceFunction<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 Reference2ReferenceMap.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