public static final class Publisher.DescriptorExtensionListImpl extends DescriptorExtensionList<Publisher,Descriptor<Publisher>> implements Comparator<ExtensionComponent<Descriptor<Publisher>>>
Publisher
has a special sort semantics that requires a subtype.extensionType, hudson, jenkins
modCount
Constructor and Description |
---|
DescriptorExtensionListImpl(Jenkins hudson) |
Modifier and Type | Method and Description |
---|---|
int |
compare(ExtensionComponent<Descriptor<Publisher>> lhs,
ExtensionComponent<Descriptor<Publisher>> rhs) |
protected List<ExtensionComponent<Descriptor<Publisher>>> |
sort(List<ExtensionComponent<Descriptor<Publisher>>> r)
If the
ExtensionList implementation requires sorting extensions,
override this method to do so. |
add, clearLegacyInstances, createDescriptorList, createDescriptorList, find, find, findByName, getLoadLock, listLegacyInstances, load, load, newInstanceFromRadioList, newInstanceFromRadioList, remove
add, addListener, create, create, get, get, getComponents, getDynamic, getInstance, iterator, lookup, lookupSingleton, refresh, remove, removeAll, reverseView, size
addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeRange, set, subList
addAll, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
addAll, contains, containsAll, isEmpty, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public DescriptorExtensionListImpl(Jenkins hudson)
protected List<ExtensionComponent<Descriptor<Publisher>>> sort(List<ExtensionComponent<Descriptor<Publisher>>> r)
ExtensionList
ExtensionList
implementation requires sorting extensions,
override this method to do so.
The implementation should copy a list, do a sort, and return the new instance.
sort
in class ExtensionList<Descriptor<Publisher>>
public int compare(ExtensionComponent<Descriptor<Publisher>> lhs, ExtensionComponent<Descriptor<Publisher>> rhs)
compare
in interface Comparator<ExtensionComponent<Descriptor<Publisher>>>
Copyright © 2004–2021. All rights reserved.