java.lang.Object | |
↳ | com.atlassian.bitbucket.util.ModuleDescriptorUtils |
Utility methods for working with plugin ModuleDescriptor ModuleDescriptors.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert an Iterable of ModuleDescriptor into a Stream of T, where T is the
type returned by
getModule() . | |||||||||||
Convert a Stream of ModuleDescriptor into a Stream of T, where T is the
type returned by
getModule() . | |||||||||||
Convert a Collection of
BaseWeightedModuleDescriptor into a Stream of T
(sorted by BaseWeightedModuleDescriptor's weight), where T is the type
returned by getModule() . | |||||||||||
Convert a Stream of
BaseWeightedModuleDescriptor into a Stream 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 a Stream of T, where T is the
type returned by getModule()
.
descriptors | the module descriptors to convert. |
---|
Convert a Stream of ModuleDescriptor into a Stream of T, where T is the
type returned by getModule()
.
descriptors | the module descriptors to convert. |
---|
Convert a Collection of BaseWeightedModuleDescriptor
into a Stream of T
(sorted by BaseWeightedModuleDescriptor's
weight), where T is the type
returned by getModule()
.
descriptors | the weighted module descriptors to convert. |
---|
Convert a Stream of BaseWeightedModuleDescriptor
into a Stream of T
(sorted by BaseWeightedModuleDescriptor's
weight), where T is the type
returned by getModule()
.
descriptors | the weighted module descriptors to convert. |
---|