/* ------------------------------------------------------------------------- */
 public synchronized boolean equal(Object obj1) throws ObjectInvalid {
   if (obj1 == null || current == null) {
     throw new ObjectInvalid();
   }
   check_object(obj1);
   return ops.equal(current, (Any) obj1);
 }
Esempio n. 2
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);
 };
Esempio n. 3
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);
 };
 /* ------------------------------------------------------------------------- */
 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);
 }
Esempio n. 5
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);
 };
Esempio n. 6
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);
 };
 /* ------------------------------------------------------------------------- */
 public synchronized boolean equal(Object obj1, Object obj2) throws ObjectInvalid {
   if (obj1 == null || obj2 == null) {
     throw new ObjectInvalid();
   }
   check_object(obj1);
   check_object(obj2);
   return ops.equal((Any) obj1, (Any) obj2);
 }
 /* ------------------------------------------------------------------------- */
 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);
 }
 /* ------------------------------------------------------------------------- */
 private void check_object(Object obj) throws ObjectInvalid {
   if (!(obj instanceof Any) || !((Any) obj).type().equal(ops.element_type())) {
     throw new ObjectInvalid();
   }
 }