public static class PluginUtils.LibraryObjectComparator extends Object implements Comparator
Arrays.sort()
Constructor and Description |
---|
LibraryObjectComparator(String attributeName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public LibraryObjectComparator(String attributeName)
attributeName
- the uppercase name of the attribute to comparepublic int compare(Object o1, Object o2)
compare
in interface Comparator
Copyright © 2023. All rights reserved.