Пример #1
0
  /** Empties the set. */
  public void clear() {
    super.clear();
    double[] set = _set;
    byte[] states = _states;

    for (int i = set.length; i-- > 0; ) {
      set[i] = (double) 0;
      states[i] = FREE;
    }
  }
  /** Empties the map. */
  @Override // GemStoneAddition
  public void clear() {
    super.clear();
    double[] keys = _set;
    float[] vals = _values;
    byte[] states = _states;

    for (int i = keys.length; i-- > 0; ) {
      keys[i] = 0;
      vals[i] = 0;
      states[i] = FREE;
    }
  }