public boolean retainEntries()

in core/src/main/java/gnu/trove/TIntIntHashMap.java [441:455]


  public boolean retainEntries(TIntIntProcedure procedure) {
    boolean modified = false;
    byte[] states = _states;
    int[] keys = _set;
    int[] values = _values;
    if (states != null) {
      for (int i = states.length; i-- > 0; ) {
        if (states[i] == FULL && !procedure.execute(keys[i], values[i])) {
          removeAt(i);
          modified = true;
        }
      }
    }
    return modified;
  }