Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > EOControl Reference

Table of Contents

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

Returns NSComparator.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

Returns NSComparator.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

Returns NSComparator.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

Returns NSComparator.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.


Table of Contents