public class ResourceComparator<T extends ScimResource> extends Object implements Comparator<T>
| Constructor and Description |
|---|
ResourceComparator(Path sortBy,
ResourceTypeDefinition resourceType)
Create a new ScimComparator that will sort in ascending order.
|
ResourceComparator(Path sortBy,
SortOrder sortOrder,
ResourceTypeDefinition resourceType)
Create a new ScimComparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic ResourceComparator(Path sortBy, ResourceTypeDefinition resourceType)
sortBy - The path to the attribute to sort by.resourceType - The resource type definition containing the schemas or
null to compare using case insensitive matching
for string values.public ResourceComparator(Path sortBy, SortOrder sortOrder, ResourceTypeDefinition resourceType)
sortBy - The path to the attribute to sort by.sortOrder - The sort order.resourceType - The resource type definition containing the schemas or
null to compare using case insensitive matching
for string values.public int compare(T o1, T o2)
compare in interface Comparator<T extends ScimResource>Copyright © 2015–2019 Ping Identity Corporation. All rights reserved.