public V next () { if (!hasNext) throw new NoSuchElementException(); V value; if (nextIndex == INDEX_ZERO) value = map.zeroValue; else value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return value; }
/** Returns a new array containing the remaining values. */ public ArrayList<V> toArray () { ArrayList array = new ArrayList(map.size); while (hasNext) array.add(next()); return array; } }
/** Returns an iterator for the values 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 Values<V> values () { return new Values(this); }
/** Returns an iterator for the values 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 Values<V> values () { return new Values(this); }
/** Returns a new array containing the remaining values. */ public ArrayList<V> toArray () { ArrayList array = new ArrayList(map.size); while (hasNext) array.add(next()); return array; } }
public V next () { if (!hasNext) throw new NoSuchElementException(); V value; if (nextIndex == INDEX_ZERO) value = map.zeroValue; else value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return value; }
public V next () { if (!hasNext) throw new NoSuchElementException(); V value; if (nextIndex == INDEX_ZERO) value = map.zeroValue; else value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return value; }
/** Returns an iterator for the values 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 Values<V> values () { return new Values(this); }
/** Returns a new array containing the remaining values. */ public ArrayList<V> toArray () { ArrayList array = new ArrayList(map.size); while (hasNext) array.add(next()); return array; } }