final AbstractIntDoubleMap other = (AbstractIntDoubleMap) obj;
if (other.size() != size()) return false;
return
forEachPair(
new IntDoubleProcedure() {
public boolean apply(int key, double value) {
return other.containsKey(key) && other.get(key) == value;
}
}
)
&&
other.forEachPair(
new IntDoubleProcedure() {
public boolean apply(int key, double value) {
return containsKey(key) && get(key) == value;
}
}
);