csli.util
Class Comparators
java.lang.Object
csli.util.Comparators
public class Comparators
- extends Object
Collection of comparator & equality utilities
- Author:
- alexgru Jan 28, 2004 10:41:48 AM
|
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 |
Comparators
public Comparators()
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 testb - The second object to test
- Returns:
- (a == null && b == null) || (a != null && b != null &&
a.equals(b)) -alexgru Jan 28, 2004