Example #1
0
 public boolean equal(Object obj) throws ObjectInvalid {
   if (current == null || obj == null) {
     throw new ObjectInvalid();
   }
   check_object(obj);
   return ops.key_equal(current.key, ((KeyNode) obj).key);
 };
Example #2
0
 public boolean equal(Object obj1, Object obj2) throws ObjectInvalid {
   if (obj1 == null || obj2 == null) {
     throw new ObjectInvalid();
   }
   check_object(obj1);
   check_object(obj2);
   return ops.key_equal(((KeyNode) obj1).key, ((KeyNode) obj2).key);
 };