EOSortOrderingComparison
Implemented by:
- EONullValue
- Package:
- com.apple.client.eocontrol
Interface Description
The EOSortOrderingComparison interface defines methods for comparing values. These methods are used for sorting value objects.
Note: This interface doesn't exist in the Yellow Box package, com.apple.yellow.eocontrol |
Support for these methods is provided for String, Number, and Date using EOSortOrdering.ComparisonSupport. EONullValue implements the interface directly. You should implement this interface for any value classes you write that you want to be properly sorted by EOSortOrdering instances.
Instance Methods
compareAscending
ReturnsNSComparator.OrderedAscending
if anObject is
naturally ordered after the receiver, NSComparator.OrderedDescending
if
it's naturally ordered before the receiver, and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.compareCaseInsensitiveAscending
ReturnsNSComparator.OrderedAscending
if anObject is
naturally ordered-ignoring case-after the receiver, NSComparator.OrderedDescending
if
it's naturally ordered before the receiver, and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.compareCaseInsensitiveDescending
ReturnsNSComparator.OrderedAscending
if anObject is
naturally ordered-ignoring case- before the receiver, NSComparator.OrderedDescending
if
it's naturally ordered after the
receiver, and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.compareDescending
ReturnsNSComparator.OrderedAscending
if anObject is
naturally ordered before the receiver, NSComparator.OrderedDescending
if
it's naturally ordered after the
receiver, and NSComparator.OrderedSame
if
they're equivalent for ordering purposes.