debugAllKeys property

  1. @visibleForTesting
Iterable<TKey> get debugAllKeys

All currently-live keys, in nid order. Debug-only accessor for tests that need to pick a random key from the live set.

Implementation

@visibleForTesting
Iterable<TKey> get debugAllKeys sync* {
  for (int nid = 0; nid < _nids.length; nid++) {
    final key = _nids.keyOf(nid);
    if (key != null) {
      yield key;
    }
  }
}