void (@NotNull HashTableData table, KeyValueProcessor processor) { int capacity = capacity(table); for (int index = 0; index < capacity; index++) { final int key = table.entryKey(index); final int value = table.entryValue(index); if (isSlotOccupied(key)) { assert value != NO_VALUE : "value(table[" + (index + 1) + "]) = " + NO_VALUE + ", while key(table[" + index + "]) = " + key; if (!processor.process(key, value)) { return; } } } }