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