T
- the type of Describable
.public class DescriptorOrder<T extends hudson.model.Describable<T>> extends Object implements Comparator<T>
Comparator
that compares Describable
instances of a specific type based
on the order of their
Descriptor
s in Jenkins
's list of Descriptor
s for
that type.Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
static <T extends hudson.model.Describable<T>> |
forward(Class<T> type)
Returns a
Comparator that matches the order of the corresponding
Jenkins.getDescriptorList(Class) . |
static <T extends hudson.model.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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static <T extends hudson.model.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 hudson.model.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
.Copyright © 2016–2017. All rights reserved.