예제 #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();
   }
 }