예제 #1
0
 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--;
 }
예제 #2
0
 public void putAll(ObjectIntMap<K> map) {
   for (Entry<K> entry : map.entries()) put(entry.key, entry.value);
 }