Beispiel #1
0
 public int compare_with(Object obj) throws ObjectInvalid {
   if (current == null || obj == null) {
     throw new ObjectInvalid();
   }
   check_object(obj);
   return ops.key_compare(current.key, ((KeyNode) obj).key);
 };
Beispiel #2
0
 public int compare(Object obj1, Object obj2) throws ObjectInvalid {
   if (obj1 == null || obj2 == null) {
     throw new ObjectInvalid();
   }
   check_object(obj1);
   check_object(obj2);
   return ops.key_compare(((KeyNode) obj1).key, ((KeyNode) obj2).key);
 };