public static interface

ModuleDescriptors.Orderings

com.atlassian.jira.plugin.util.ModuleDescriptors.Orderings
Known Indirect Subclasses

Class Overview

Responsible for creating Ordering instances to sort collections of module descriptors.

See Also
  • Ordering

Summary

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.

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.
See Also
  • com.atlassian.plugin.web.descriptors.WeightedDescriptorComparator