T - the type of Describable.public class DescriptorOrder<T extends Describable<T>> extends Object implements Comparator<T>
Comparator that compares Describable instances of a specific type based
on the order of their
Descriptors in Jenkins's list of Descriptors for
that type.| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2) |
static <T extends Describable<T>> |
forward(Class<T> type)
Returns a
Comparator that matches the order of the corresponding
Jenkins.getDescriptorList(Class). |
static <T extends Describable<T>> |
reverse(Class<T> type)
Returns a
Comparator that reverses the order of the corresponding
Jenkins.getDescriptorList(Class). |
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 static <T extends Describable<T>> Comparator<T> forward(Class<T> type)
Comparator that matches the order of the corresponding
Jenkins.getDescriptorList(Class).T - the type of Describable.type - the type of Describable.Comparator.public static <T extends Describable<T>> Comparator<T> reverse(Class<T> type)
Comparator that reverses the order of the corresponding
Jenkins.getDescriptorList(Class).T - the type of Describable.type - the type of Describable.Comparator.public int compare(T o1, T o2)
compare in interface Comparator<T extends Describable<T>>Copyright © 2016–2019. All rights reserved.