| Constructor and Description |
|---|
ERXSetUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static <T> NSSet<T> |
deepClone(NSSet<T> set,
boolean onlyCollections)
Returns a deep clone of the given set.
|
static <T> NSSet<T> |
filteredSetWithQualifier(NSSet<T> set,
com.webobjects.eocontrol.EOQualifier qualifier)
Like EOQualifier.filteredArrayWithQualifier but for an NSSet.
|
static <T> void |
filterSetWithQualifier(NSMutableSet<T> set,
com.webobjects.eocontrol.EOQualifier qualifier)
Like EOQualifier.filterArrayWithQualifier but for an NSMutableSet.
|
static <T> NSSet<T> |
setFromArray(Collection<T> array)
Simple utility method to create a concrete set object from an array.
|
static <T> NSArray<T> |
sortedArrayFromSet(NSSet<T> set,
com.webobjects.eocontrol.EOSortOrdering... orderings)
Takes an unordered set and creates a sorted array from its elements.
|
static <T> NSArray<T> |
sortedArrayFromSet(NSSet<T> set,
NSArray<com.webobjects.eocontrol.EOSortOrdering> orderings)
Takes an unordered set and creates a sorted array from its elements.
|
static <T> NSArray<T> |
sortedArrayFromSet(NSSet<T> set,
com.webobjects.foundation.NSComparator comparator)
Takes an unordered set and creates a sorted array from its elements.
|
public static <T> NSSet<T> filteredSetWithQualifier(NSSet<T> set, com.webobjects.eocontrol.EOQualifier qualifier)
T - type of set contentsset - the set to filterqualifier - the qualifier to applypublic static <T> void filterSetWithQualifier(NSMutableSet<T> set, com.webobjects.eocontrol.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<com.webobjects.eocontrol.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, com.webobjects.eocontrol.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, com.webobjects.foundation.NSComparator comparator) throws com.webobjects.foundation.NSComparator.ComparisonException
T - type of set contentsset - the set containing the elements to sortcomparator - a comparatorNSComparator.ComparisonException - if comparator cannot sort these elementsIllegalArgumentException - if comparator is nullpublic static <T> NSSet<T> setFromArray(Collection<T> array)
array - of elementspublic static <T> NSSet<T> deepClone(NSSet<T> set, boolean onlyCollections)
T - class of set elementsset - the set to cloneonlyCollections - if true, only collections in this array will be cloned, not individual valuesCopyright © 2002 – 2020 Project Wonder.