예제 #1
0
 /* ------------------------------------------------------------------------- */
 public synchronized int compare_with(Object obj) throws ObjectInvalid {
   if (obj == null || current == null) {
     throw new ObjectInvalid();
   }
   check_object(obj);
   return ops.compare(current, (Any) obj);
 }
예제 #2
0
 /* ------------------------------------------------------------------------- */
 public synchronized int compare(Object obj1, Object obj2) throws ObjectInvalid {
   if (obj1 == null || obj2 == null) {
     throw new ObjectInvalid();
   }
   check_object(obj1);
   check_object(obj2);
   return ops.compare((Any) obj1, (Any) obj2);
 }