Class ConcurrentIntIntMapView

java.lang.Object
java.util.AbstractMap<Integer,Integer>
org.antlr.v4.runtime.atn.ConcurrentIntIntMapView
All Implemented Interfaces:
ConcurrentMap<Integer,Integer>, Map<Integer,Integer>

final class ConcurrentIntIntMapView extends AbstractMap<Integer,Integer> implements ConcurrentMap<Integer,Integer>
JDK ConcurrentMap view over ConcurrentIntIntMap.

Preserves the historical protected ConcurrentMap<Integer,Integer> surface on ATN.LL1Table for subclasses and tests, while the prediction hot path reads/writes the primitive map without boxing. Mutating this view updates the same underlying store.

Entry, key, and value views are backed by the live primitive store: size(), isEmpty(), entrySet(), AbstractMap.keySet(), and AbstractMap.values() stay consistent with each other. Iterators walk an immutable snapshot of the published COW table (weakly consistent under concurrent writers, matching typical concurrent-map expectations for bulk views). Atomic single-key mutations (put(java.lang.Integer, java.lang.Integer), putIfAbsent(java.lang.Integer, java.lang.Integer), remove(java.lang.Object), replace(java.lang.Integer, java.lang.Integer, java.lang.Integer)) delegate to monitor-guarded operations on ConcurrentIntIntMap.

Null keys and null values are rejected (NullPointerException), matching ConcurrentHashMap and the LL(1) domain (alternatives are always ≥ 1).

Package-private; not part of any public API surface. HPPC types never appear in this class's signatures.