Class ProjectReference.PrioComparator
- java.lang.Object
-
- hudson.plugins.project_inheritance.projects.references.ProjectReference.PrioComparator
-
- All Implemented Interfaces:
Comparator<AbstractProjectReference>
- Enclosing class:
- ProjectReference
public static class ProjectReference.PrioComparator extends Object implements Comparator<AbstractProjectReference>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectReference.PrioComparator.SELECTOR
-
Constructor Summary
Constructors Constructor Description PrioComparator(ProjectReference.PrioComparator.SELECTOR sel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(AbstractProjectReference o1, AbstractProjectReference o2)
static int
getPriorityFor(AbstractProjectReference ref, ProjectReference.PrioComparator.SELECTOR sel)
static List<AbstractProjectReference>
getSortedCopy(List<AbstractProjectReference> in, ProjectReference.PrioComparator.SELECTOR sel)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
PrioComparator
public PrioComparator(ProjectReference.PrioComparator.SELECTOR sel)
-
-
Method Detail
-
compare
public int compare(AbstractProjectReference o1, AbstractProjectReference o2)
- Specified by:
compare
in interfaceComparator<AbstractProjectReference>
-
getPriorityFor
public static int getPriorityFor(AbstractProjectReference ref, ProjectReference.PrioComparator.SELECTOR sel)
-
getSortedCopy
public static List<AbstractProjectReference> getSortedCopy(List<AbstractProjectReference> in, ProjectReference.PrioComparator.SELECTOR sel)
-
-