hudson.tasks
Class Publisher.DescriptorExtensionListImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by hudson.ExtensionList<D>
              extended by hudson.DescriptorExtensionList<Publisher,Descriptor<Publisher>>
                  extended by 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

Field Summary
 
Fields inherited from class hudson.ExtensionList
extensionType, hudson, jenkins
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Publisher.DescriptorExtensionListImpl(Jenkins hudson)
           
 
Method Summary
 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.
 
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
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, 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.Comparator
equals
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

Publisher.DescriptorExtensionListImpl

public Publisher.DescriptorExtensionListImpl(Jenkins hudson)
Method Detail

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.