EOSortOrdering.ComparisonSupport
- Inherits from:
- Object
- Package:
- com.apple.client.eocontrol
Class Description
The com.apple.client.eocontrol EOSortOrdering.ComparisonSupport class provides default implementations of the EOSortOrderingComparison interface.
Note: This class doesn't exist in the com.apple.yellow.eocontrol package. |
The com.apple.client.eocontrol EOCustomObject uses EOSortOrdering.ComparisonSupport's default implementations. Typically your custom enterprise object classes inherit from EOCustomObject and inherit the default implementations. If your custom enterprise object class doesn't inherit from EOCustomObject, you should implement the EOSortOrderingComparison interface directly.
Method Types
- Setting up automatic support
- setSupportForClass
- supportForClass
- Comparing two objects
- compareValues
- EOSortOrderingComparison methods
- compareAscending
- compareCaseInsensitiveAscending
- compareCaseInsensitiveDescending
- compareDescending
Static Methods
compareValues
public static int
compareValues
(
Object anObject,
Object anotherObject,
NSSelector selector)
setSupportForClass
public static void
setSupportForClass
(
EOSortOrdering.ComparisonSupport supportClass,
Class aClass)
supportForClass
public static EOSortOrdering.ComparisonSupport
supportForClass
(Class aClass)
Instance Methods
compareAscending
public int
compareAscending
(
Object receiver,
Object anObject)
NSComparator.OrderedAscending
if anObject is
naturally ordered after receiver, NSComparator.OrderedDescending
if
it's naturally ordered before receiver,
and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.compareCaseInsensitiveAscending
public int
compareCaseInsensitiveAscending
(
Object receiver,
Object anObject)
NSComparator.OrderedAscending
if anObject is
naturally ordered-ignoring case-after receiver, NSComparator.OrderedDescending
if
it's naturally ordered before receiver,
and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.compareCaseInsensitiveDescending
public int
compareCaseInsensitiveDescending
(
Object receiver,
Object anObject)
NSComparator.OrderedAscending
if anObject is
naturally ordered-ignoring case-before receiver, NSComparator.OrderedDescending
if
it's naturally ordered after receiver,
and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.compareDescending
public int
compareDescending
(
Object anObject,
Object anObject)
NSComparator.OrderedAscending
if anObject is
naturally ordered before receiver, NSComparator.OrderedDescending
if
it's naturally ordered after receiver,
and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.