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