PATH Documentation > WebObjects

Table of Contents

EOSortOrderingComparison


(informal interface)
Implemented by:
EONullValue
Package:
com.webobjects.eocontrol

Interface Description


The EOSortOrderingComparison interface defines methods for comparing values. These methods are used for sorting value objects.

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.

© 2001 Apple Computer, Inc. (Last Published April 19, 2001)


Table of Contents