- All Implemented Interfaces:
- java.util.Map<K,Replica>
- Enclosing class:
- AbstractReplicaCollection<C extends AbstractReplicaCollection<C>>
protected static class AbstractReplicaCollection.ReplicaMap<K>
extends java.util.AbstractMap<K,Replica>
A simple map that ensures the underlying list's iteration order is maintained, and can be shared with
subLists (either produced via subList, or via filter that naturally produced a subList).
This permits us to reduce the amount of garbage generated, by not unnecessarily copying,
reduces the amount of indirection necessary, as well as ensuring monomorphic callsites.
The underlying map is also more efficient, particularly for such small collections as we typically produce.