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