Пример #1
0
 /* ------------------------------------------------------------------------- */
 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);
 }
Пример #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);
 };
Пример #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);
 };
Пример #4
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);
 }
Пример #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);
 };
Пример #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);
 };
Пример #7
0
 /* ------------------------------------------------------------------------- */
 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);
 }
Пример #8
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);
 }
Пример #9
0
 /* ------------------------------------------------------------------------- */
 private void check_object(Object obj) throws ObjectInvalid {
   if (!(obj instanceof Any) || !((Any) obj).type().equal(ops.element_type())) {
     throw new ObjectInvalid();
   }
 }