public class ERXSortOrdering
extends com.webobjects.eocontrol.EOSortOrdering
ERXSortOrdering is an EOSortOrdering subclass that provides support for chaining (like ERXKey).
Examples:
Person.COMPANY.dot(Company.NAME).asc().then(Person.FIRST_NAME.desc())
Modifier and Type | Class and Description |
---|---|
static class |
ERXSortOrdering.ERXSortOrderings
ERXSortOrderings is an NSMutableArray<EOSortOrdering> that
provides methods for chaining.
|
com.webobjects.eocontrol.EOSortOrdering._MultipleSortValueHolder, com.webobjects.eocontrol.EOSortOrdering._MultipleValueComparator, com.webobjects.eocontrol.EOSortOrdering._SingleSortValueHolder, com.webobjects.eocontrol.EOSortOrdering._SingleValueComparator, com.webobjects.eocontrol.EOSortOrdering._SortValueHolder, com.webobjects.eocontrol.EOSortOrdering.Comparison, com.webobjects.eocontrol.EOSortOrdering.ComparisonSupport
com.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Support
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support
Constructor and Description |
---|
ERXSortOrdering(ERXKey key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering).
|
ERXSortOrdering(String key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering).
|
Modifier and Type | Method and Description |
---|---|
ERXSortOrdering.ERXSortOrderings |
array()
Returns this sort ordering as an array.
|
boolean |
equals(Object obj)
Provide the equals() method missing from EOSortOrder.
|
int |
hashCode() |
<T> void |
sort(NSMutableArray<T> array)
Sorts the given array with this sort ordering.
|
<T> NSArray<T> |
sorted(NSArray<T> array)
Returns an array sorted with this sort ordering.
|
static ERXSortOrdering |
sortOrderingWithKey(ERXKey key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering).
|
static ERXSortOrdering |
sortOrderingWithKey(String key,
com.webobjects.foundation.NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering).
|
ERXSortOrdering.ERXSortOrderings |
then(com.webobjects.eocontrol.EOSortOrdering nextSortOrdering)
Returns ERXSortOrderings with this sort ordering followed by the provided
next sort ordering.
|
ERXSortOrdering.ERXSortOrderings |
then(NSArray<com.webobjects.eocontrol.EOSortOrdering> nextSortOrderings)
Returns ERXSortOrderings with this sort ordering followed by the provided
array of next sort orderings.
|
public ERXSortOrdering(String key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selectorpublic ERXSortOrdering(ERXKey key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selectorpublic ERXSortOrdering.ERXSortOrderings then(com.webobjects.eocontrol.EOSortOrdering nextSortOrdering)
nextSortOrdering
- the next sort ordering to chain to thispublic ERXSortOrdering.ERXSortOrderings then(NSArray<com.webobjects.eocontrol.EOSortOrdering> nextSortOrderings)
nextSortOrderings
- the next sort orderings to chain to thispublic ERXSortOrdering.ERXSortOrderings array()
public <T> NSArray<T> sorted(NSArray<T> array)
T
- the type of the arrayarray
- the array to sortpublic <T> void sort(NSMutableArray<T> array)
T
- the type of the arrayarray
- the array to sortpublic boolean equals(Object obj)
public static ERXSortOrdering sortOrderingWithKey(String key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selectorpublic static ERXSortOrdering sortOrderingWithKey(ERXKey key, com.webobjects.foundation.NSSelector selector)
key
- the key to sort onselector
- the sort selectorCopyright © 2002 – 2020 Project Wonder.