| java.lang.Object | |
| ↳ | com.atlassian.stash.util.ModuleDescriptorUtils |
Utility methods for working with plugin ModuleDescriptor ModuleDescriptors.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Convert an Iterable of ModuleDescriptor into an Iterable of T, where T is the
type returned by
getModule(). | |||||||||||
Convert an Iterable of
BaseWeightedModuleDescriptor into an Iterable of T
(sorted by BaseWeightedModuleDescriptor's weight), where T is the type
returned by getModule(). | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
getModule() from a
descriptor.
The cast is safe as a ModuleDescriptor can only ever return a module of it's generic type.
Convert an Iterable of ModuleDescriptor into an Iterable of T, where T is the
type returned by getModule().
| descriptors | the module descriptors to convert. |
|---|
Convert an Iterable of BaseWeightedModuleDescriptor into an Iterable of T
(sorted by BaseWeightedModuleDescriptor's weight), where T is the type
returned by getModule().
| descriptors | the weighted module descriptors to convert. |
|---|