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