Interface Reference2ObjectMap<K,​V>

All Superinterfaces:
Function<K,​V>, Function<K,​V>, Map<K,​V>, Reference2ObjectFunction<K,​V>
All Known Subinterfaces:
Reference2ObjectSortedMap<K,​V>
All Known Implementing Classes:
AbstractReference2ObjectMap, AbstractReference2ObjectSortedMap, Reference2ObjectArrayMap, Reference2ObjectLinkedOpenHashMap, Reference2ObjectMaps.EmptyMap, Reference2ObjectMaps.Singleton, Reference2ObjectMaps.SynchronizedMap, Reference2ObjectMaps.UnmodifiableMap, Reference2ObjectOpenCustomHashMap, Reference2ObjectOpenHashMap, Reference2ObjectSortedMaps.EmptySortedMap, Reference2ObjectSortedMaps.Singleton, Reference2ObjectSortedMaps.SynchronizedSortedMap, Reference2ObjectSortedMaps.UnmodifiableSortedMap

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