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