void () { while (entryIterator.hasNext()) { Int2ObjectMap.Entry<MyReference<V>> entry = entryIterator.next(); MyReference<V> ref = entry.getValue(); V v = ref.get(); if (v == null) { continue; } int key = entry.getIntKey(); nextVEntry = new SimpleEntry<>(key, v); return; } nextVEntry = null; }