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