/** Note the same entry instance is returned each time this method is called. */ public Entry<K, V> next () { if (!hasNext) throw new NoSuchElementException(); K[] keyTable = map.keyTable; entry.key = keyTable[nextIndex]; entry.value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return entry; }
/** Returns an iterator for the entries in the map. Remove is supported. Note that the same iterator instance is returned each * time this method is called. Use the {@link Entries} constructor for nested or multithreaded iteration. */ public Entries<K, V> entries () { if (entries == null) entries = new Entries(this); else entries.reset(); return entries; }
/** Returns an iterator for the entries in the map. Remove is supported. Note that the same iterator instance is returned each * time this method is called. Use the {@link Entries} constructor for nested or multithreaded iteration. */ public Entries<K, V> entries () { if (entries == null) entries = new Entries(this); else entries.reset(); return entries; }
/** Note the same entry instance is returned each time this method is called. */ public Entry<K, V> next () { if (!hasNext) throw new NoSuchElementException(); K[] keyTable = map.keyTable; entry.key = keyTable[nextIndex]; entry.value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return entry; }
/** Note the same entry instance is returned each time this method is called. */ public Entry<K, V> next () { if (!hasNext) throw new NoSuchElementException(); K[] keyTable = map.keyTable; entry.key = keyTable[nextIndex]; entry.value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return entry; }
/** Returns an iterator for the entries in the map. Remove is supported. Note that the same iterator instance is returned each * time this method is called. Use the {@link Entries} constructor for nested or multithreaded iteration. */ public Entries<K, V> entries () { if (entries == null) entries = new Entries(this); else entries.reset(); return entries; }
/** Note the same entry instance is returned each time this method is called. */ public Entry<K, V> next () { if (!hasNext) throw new NoSuchElementException(); K[] keyTable = map.keyTable; entry.key = keyTable[nextIndex]; entry.value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return entry; }
/** Returns an iterator for the entries in the map. Remove is supported. Note that the same iterator instance is returned each * time this method is called. Use the {@link Entries} constructor for nested or multithreaded iteration. */ public Entries<K, V> entries () { if (entries == null) entries = new Entries(this); else entries.reset(); return entries; }