Package hudson.tasks
Class Publisher.DescriptorExtensionListImpl
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- hudson.ExtensionList<D>
-
- hudson.DescriptorExtensionList<Publisher,Descriptor<Publisher>>
-
- hudson.tasks.Publisher.DescriptorExtensionListImpl
-
- All Implemented Interfaces:
Iterable<Descriptor<Publisher>>
,Collection<Descriptor<Publisher>>
,Comparator<ExtensionComponent<Descriptor<Publisher>>>
,List<Descriptor<Publisher>>
,OnMaster
- Enclosing class:
- Publisher
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.
-
-
Field Summary
-
Fields inherited from class hudson.ExtensionList
extensionType, hudson, jenkins
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description DescriptorExtensionListImpl(Jenkins hudson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ExtensionComponent<Descriptor<Publisher>> lhs, ExtensionComponent<Descriptor<Publisher>> rhs)
protected List<ExtensionComponent<Descriptor<Publisher>>>
sort(List<ExtensionComponent<Descriptor<Publisher>>> r)
If theExtensionList
implementation requires sorting extensions, override this method to do so.-
Methods inherited from class hudson.DescriptorExtensionList
add, clearLegacyInstances, createDescriptorList, createDescriptorList, find, find, findByName, getLoadLock, listLegacyInstances, load, load, newInstanceFromRadioList, newInstanceFromRadioList, remove
-
Methods inherited from class hudson.ExtensionList
add, addListener, create, create, get, get, getComponents, getDynamic, getInstance, iterator, lookup, lookupSingleton, refresh, remove, removeAll, reverseView, size
-
Methods inherited from class java.util.AbstractList
addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
DescriptorExtensionListImpl
public DescriptorExtensionListImpl(Jenkins hudson)
-
-
Method Detail
-
sort
protected List<ExtensionComponent<Descriptor<Publisher>>> sort(List<ExtensionComponent<Descriptor<Publisher>>> r)
Description copied from class:ExtensionList
If theExtensionList
implementation requires sorting extensions, override this method to do so.The implementation should copy a list, do a sort, and return the new instance.
- Overrides:
sort
in classExtensionList<Descriptor<Publisher>>
-
compare
public int compare(ExtensionComponent<Descriptor<Publisher>> lhs, ExtensionComponent<Descriptor<Publisher>> rhs)
- Specified by:
compare
in interfaceComparator<ExtensionComponent<Descriptor<Publisher>>>
-
-