public class

DefaultModuleDescriptorOrderingsFactory

extends Object
implements ModuleDescriptors.Orderings
java.lang.Object
   ↳ com.atlassian.jira.plugin.util.orderings.DefaultModuleDescriptorOrderingsFactory

Summary

Public Constructors
DefaultModuleDescriptorOrderingsFactory(PluginMetadataManager pluginMetadataManager)
Public Methods
Ordering<ModuleDescriptor> byOrigin()
Creates an ordering instance that orders module descriptors according to the "origin" of the plugin they come from.
Ordering<ModuleDescriptor> natural()
Creates an Ordering instance that orders module descriptors according to their "natural" order.
Ordering<WeightedDescriptor> weightedDescriptorComparator()
Creates an Ordering instance that orders weighted module descriptors according to their weight.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.util.ModuleDescriptors.Orderings

Public Constructors

public DefaultModuleDescriptorOrderingsFactory (PluginMetadataManager pluginMetadataManager)

Public Methods

public Ordering<ModuleDescriptor> byOrigin ()

Creates an ordering instance that orders module descriptors according to the "origin" of the plugin they come from.

Returns
  • An ordering instance that orders module descriptors according to the "origin" of the plugin they come from.

public Ordering<ModuleDescriptor> natural ()

Creates an Ordering instance that orders module descriptors according to their "natural" order.

Natural order is based on the module descriptor's complete key

Returns
  • An Ordering instance that orders module descriptors according to their "natural" order.

public Ordering<WeightedDescriptor> weightedDescriptorComparator ()

Creates an Ordering instance that orders weighted module descriptors according to their weight.

Returns
  • An ordering instance that orders module descriptors according to their weight.