public class ERXComparatorSupport extends Object
Constructor and Description |
---|
ERXComparatorSupport() |
Modifier and Type | Method and Description |
---|---|
static int |
compareWithNullsFirst(com.webobjects.foundation.NSComparator comparator,
Object object1,
Object object2)
Compares object1 and object2 using comparator.
|
static int |
compareWithNullsLast(com.webobjects.foundation.NSComparator comparator,
Object object1,
Object object2)
Compares object1 and object2 using comparator.
|
public static int compareWithNullsFirst(com.webobjects.foundation.NSComparator comparator, Object object1, Object object2) throws com.webobjects.foundation.NSComparator.ComparisonException
comparator
- NSComparator instance to use if both object1 and object2 are not null/NSKeyValueCoding.NullValueobject1
- first object to compareobject2
- second object to comparecom.webobjects.foundation.NSComparator.ComparisonException
- if comparator throws this comparing object1 to object2public static int compareWithNullsLast(com.webobjects.foundation.NSComparator comparator, Object object1, Object object2) throws com.webobjects.foundation.NSComparator.ComparisonException
comparator
- NSComparator instance to use if both object1 and object2 are not null/NSKeyValueCoding.NullValueobject1
- first object to compareobject2
- second object to comparecom.webobjects.foundation.NSComparator.ComparisonException
- if comparator throws this comparing object1 to object2Copyright © 2002 – 2020 Project Wonder.