public class ERXSetUtilities
extends java.lang.Object
NSSet utilities.| Constructor and Description |
|---|
ERXSetUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static <T> NSSet<T> |
filteredSetWithQualifier(NSSet<T> set,
EOQualifier qualifier)
Like EOQualifier.filteredArrayWithQualifier but for an NSSet.
|
static <T> void |
filterSetWithQualifier(NSMutableSet<T> set,
EOQualifier qualifier)
Like EOQualifier.filterArrayWithQualifier but for an NSMutableSet.
|
static <T> NSArray<T> |
sortedArrayFromSet(NSSet<T> set,
EOSortOrdering... orderings)
Takes an unordered set and creates a sorted array from its elements.
|
static <T> NSArray<T> |
sortedArrayFromSet(NSSet<T> set,
NSArray<EOSortOrdering> orderings)
Takes an unordered set and creates a sorted array from its elements.
|
static <T> NSArray<T> |
sortedArrayFromSet(NSSet<T> set,
NSComparator comparator)
Takes an unordered set and creates a sorted array from its elements.
|
public static <T> NSSet<T> filteredSetWithQualifier(NSSet<T> set, EOQualifier qualifier)
T - type of set contentsset - the set to filterqualifier - the qualifier to applypublic static <T> void filterSetWithQualifier(NSMutableSet<T> set, EOQualifier qualifier)
T - type of set contentsset - the set to filter in-placequalifier - the qualifier to applypublic static <T> NSArray<T> sortedArrayFromSet(NSSet<T> set, NSArray<EOSortOrdering> orderings)
T - type of set contentsset - the set containing the elements to sortorderings - the sort orderingspublic static <T> NSArray<T> sortedArrayFromSet(NSSet<T> set, EOSortOrdering... orderings)
T - type of set contentsset - the set containing the elements to sortorderings - list of sort orderingspublic static <T> NSArray<T> sortedArrayFromSet(NSSet<T> set, NSComparator comparator) throws NSComparator.ComparisonException
T - type of set contentsset - the set containing the elements to sortcomparator - a comparatorNSComparator.ComparisonException - if comparator cannot sort these elementsjava.lang.IllegalArgumentException - if comparator is nullCopyright © 2002 – 2022 Project Wonder.