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, jenkinsmodCount| 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, removeadd, addListener, create, create, get, get, getComponents, getDynamic, iterator, lookup, refresh, remove, reverseView, sizeaddAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeRange, set, subListaddAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongaddAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic DescriptorExtensionListImpl(Jenkins hudson)
protected List<ExtensionComponent<Descriptor<Publisher>>> sort(List<ExtensionComponent<Descriptor<Publisher>>> r)
ExtensionListExtensionList 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 © 2019. All rights reserved.