@Override
		public Map.Entry<K, V> next() {
			if (!hasNext()) {
				throw new NoSuchElementException();
			}
			Map.Entry<K, V> result = new GeneratedEntry(nextKey, nextValue);
			nextKey = null;
			nextValue = null;
			return result;
		}
This iterator works much like the {@link WeakValuesIterator}, except that this iterator
works on Map Entry objects.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/AbstractWeakValueMap.java