public void remove() { if (currentIndex < 0) throw new IllegalStateException("next must be called before remove."); if (currentIndex >= map.capacity) { map.removeStashIndex(currentIndex); } else { map.keyTable[currentIndex] = null; } currentIndex = -1; map.size--; }
public void putAll(ObjectIntMap<K> map) { for (Entry<K> entry : map.entries()) put(entry.key, entry.value); }