public final boolean execute(double key, float value) { int index = _otherMap.index(key); if (index >= 0 && eq(value, _otherMap.get(key))) { return true; } return false; }
/** * Compares this map with another map for equality of their stored entries. * * @param other an <code>Object</code> value * @return a <code>boolean</code> value */ @Override // GemStoneAddition public boolean equals(Object other) { if (!(other instanceof TDoubleFloatHashMap)) { return false; } TDoubleFloatHashMap that = (TDoubleFloatHashMap) other; if (that.size() != this.size()) { return false; } return forEachEntry(new EqProcedure(that)); }
/** @return a deep clone of this collection */ @Override // GemStoneAddition public Object clone() { TDoubleFloatHashMap m = (TDoubleFloatHashMap) super.clone(); m._values = this._values.clone(); return m; }