public class ERXSortOrdering extends 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.
|
EOSortOrdering._MultipleSortValueHolder, EOSortOrdering._MultipleValueComparator, EOSortOrdering._SingleSortValueHolder, EOSortOrdering._SingleValueComparator, EOSortOrdering._SortValueHolder, EOSortOrdering.Comparison, EOSortOrdering.ComparisonSupport
NSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.Support
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
_CLASS, CompareAscending, CompareCaseInsensitiveAscending, CompareCaseInsensitiveDescending, CompareDescending
Constructor and Description |
---|
ERXSortOrdering(ERXKey key,
NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering).
|
ERXSortOrdering(String key,
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,
NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering).
|
static ERXSortOrdering |
sortOrderingWithKey(String key,
NSSelector selector)
Constructs an ERXSortOrdering (see EOSortOrdering).
|
ERXSortOrdering.ERXSortOrderings |
then(EOSortOrdering nextSortOrdering)
Returns ERXSortOrderings with this sort ordering followed by the provided
next sort ordering.
|
ERXSortOrdering.ERXSortOrderings |
then(NSArray<EOSortOrdering> nextSortOrderings)
Returns ERXSortOrderings with this sort ordering followed by the provided
array of next sort orderings.
|
_operatorSelectorForString, classForCoder, decodeObject, decodeWithKeyValueUnarchiver, encodeWithCoder, encodeWithKeyValueArchiver, key, selector, sortArrayUsingKeyOrderArray, sortedArrayUsingKeyOrderArray, toString
public ERXSortOrdering(String key, NSSelector selector)
key
- the key to sort onselector
- the sort selectorpublic ERXSortOrdering(ERXKey key, NSSelector selector)
key
- the key to sort onselector
- the sort selectorpublic ERXSortOrdering.ERXSortOrderings then(EOSortOrdering nextSortOrdering)
nextSortOrdering
- the next sort ordering to chain to thispublic ERXSortOrdering.ERXSortOrderings then(NSArray<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, NSSelector selector)
key
- the key to sort onselector
- the sort selectorpublic static ERXSortOrdering sortOrderingWithKey(ERXKey key, NSSelector selector)
key
- the key to sort onselector
- the sort selectorCopyright © 2002 – 2024 Project Wonder.