PATH |
Inherits from: Object
Package: com.webobjects.eocontrol
The Java Client EOSortOrdering.ComparisonSupport class provides default implementations of the EOSortOrderingComparison interface.
The Java Client 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.
Setting up automatic support setSupportForClass supportForClass Comparing two objects compareValues EOSortOrderingComparison methods compareAscending compareCaseInsensitiveAscending compareCaseInsensitiveDescending compareDescending
public static int compareValues( Object anObject, Object anotherObject, NSSelector selector)
public static void setSupportForClass( EOSortOrdering.ComparisonSupport supportClass, Class aClass)
public static EOSortOrdering.ComparisonSupport supportForClass(Class aClass)
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.
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.
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.
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.
© 2001 Apple Computer, Inc. (Last Published April 19, 2001)