Class SortedIterationObjectObjectHashMap<KType,VType>

java.lang.Object
com.carrotsearch.hppc.SortedIterationObjectObjectHashMap<KType,VType>
All Implemented Interfaces:
ObjectObjectAssociativeContainer<KType,VType>, ObjectObjectMap<KType,VType>, Iterable<ObjectObjectCursor<KType,VType>>

@Generated(date="2024-06-04T15:20:17+0200", value="SortedIterationKTypeVTypeHashMap.java") public class SortedIterationObjectObjectHashMap<KType,VType> extends Object implements ObjectObjectMap<KType,VType>
Read-only view with sorted iteration order on a delegate ObjectObjectHashMap.

In its constructor, this view creates its own iteration order array and sorts it, which is in O(n.log(n)) of the size of the delegate map. Afterward, calls to any method have the same performance as the delegate map.

This view is read-only. In addition, the delegate map must not be modified while the view is used, otherwise the iteration is undefined.

Since this view provides a fixed iteration order, it must not be used to add entries to another ObjectObjectHashMap as this may result in a runtime deadlock. See HPPC-103 and HPPC-186 for more information.