Class PartitionSplittingBackingMap.KeySet

All Implemented Interfaces:
Iterable, Collection, Set
Enclosing class:
PartitionSplittingBackingMap

protected class PartitionSplittingBackingMap.KeySet extends AbstractKeyBasedMap.KeySet
A KeySet implementation optimized for PartitionSplittingBackingMap.

The default implementation of removeAll determines the smaller collection to walk, which involves a call to AbstractKeyBasedMap.KeySet.size(); this is highly inefficient for PartitionSplittingBackingMap.