core/src/main/java/gnu/trove/TObjectIntIterator.java [94:134]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    super(map);
    _map = map;
  }

  /**
   * Returns the index of the next value in the data structure
   * or a negative value if the iterator is exhausted.
   *
   * @return an <code>int</code> value
   */
  @Override
  protected int nextIndex() {
    if (_expectedSize != _hash.size()) {
      throw new ConcurrentModificationException();
    }

    Object[] set = _map._set;
    int i = _index;
    while (i-- > 0 && (set[i] == null || set[i] == TObjectHash.REMOVED)) ;
    return i;
  }

  /**
   * Moves the iterator forward to the next entry in the underlying map.
   *
   * @throws java.util.NoSuchElementException if the iterator is already exhausted
   */
  public void advance() {
    moveToNextIndex();
  }

  /**
   * Provides access to the key of the mapping at the iterator's position.
   * Note that you must <tt>advance()</tt> the iterator at least once
   * before invoking this method.
   *
   * @return the key of the entry at the iterator's current position.
   */
  public K key() {
    //noinspection unchecked
    return (K)_map._set[_index];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core/src/main/java/gnu/trove/TObjectLongIterator.java [94:134]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    super(map);
    _map = map;
  }

  /**
   * Returns the index of the next value in the data structure
   * or a negative value if the iterator is exhausted.
   *
   * @return an <code>int</code> value
   */
  @Override
  protected int nextIndex() {
    if (_expectedSize != _hash.size()) {
      throw new ConcurrentModificationException();
    }

    Object[] set = _map._set;
    int i = _index;
    while (i-- > 0 && (set[i] == null || set[i] == TObjectHash.REMOVED)) ;
    return i;
  }

  /**
   * Moves the iterator forward to the next entry in the underlying map.
   *
   * @throws java.util.NoSuchElementException if the iterator is already exhausted
   */
  public void advance() {
    moveToNextIndex();
  }

  /**
   * Provides access to the key of the mapping at the iterator's position.
   * Note that you must <tt>advance()</tt> the iterator at least once
   * before invoking this method.
   *
   * @return the key of the entry at the iterator's current position.
   */
  public K key() {
    //noinspection unchecked
    return (K)_map._set[_index];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



