/**
  * 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
  */
 public boolean equals(Object other) {
   if (!(other instanceof TLongObjectHashMap)) {
     return false;
   }
   TLongObjectHashMap that = (TLongObjectHashMap) other;
   if (that.size() != this.size()) {
     return false;
   }
   return forEachEntry(new EqProcedure(that));
 }
예제 #2
0
 @Override
 public int size() {
   return myRegularMap.size();
 }
 public int size() {
   return myRegularMap.size() + myForeignMap.size() + myOtherMap.size();
 }