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>>
- 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.
- See Also:
DescriptorExtensionList#createDescriptorList(hudson.model.Hudson, Class
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, create, create, get, get, getComponents, getDynamic, iterator, refresh, remove, reverseView, size |
Methods inherited from class java.util.AbstractList |
addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeRange, set, subList |
Publisher.DescriptorExtensionListImpl
public Publisher.DescriptorExtensionListImpl(Jenkins hudson)
sort
protected List<ExtensionComponent<Descriptor<Publisher>>> sort(List<ExtensionComponent<Descriptor<Publisher>>> r)
- Description copied from class:
ExtensionList
- If the
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.
- Overrides:
sort
in class ExtensionList<Descriptor<Publisher>>
compare
public int compare(ExtensionComponent<Descriptor<Publisher>> lhs,
ExtensionComponent<Descriptor<Publisher>> rhs)
- Specified by:
compare
in interface Comparator<ExtensionComponent<Descriptor<Publisher>>>
Copyright © 2004-2013. All Rights Reserved.