csli.util
Class Comparators

java.lang.Object
  extended by csli.util.Comparators

public class Comparators
extends Object

Collection of comparator & equality utilities

Author:
alexgru Jan 28, 2004 10:41:48 AM

Constructor Summary
Comparators()
           
 
Method Summary
static boolean equal(Object a, Object b)
          tests equality of two objects, including if they are both null; makes use of a's equals() method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comparators

public Comparators()
Method Detail

equal

public static boolean equal(Object a,
                            Object b)
tests equality of two objects, including if they are both null; makes use of a's equals() method

Parameters:
a - The first object to test
b - The second object to test
Returns:
(a == null && b == null) || (a != null && b != null && a.equals(b)) -alexgru Jan 28, 2004