com.atlassian.jira.plugin.util
Interface ModuleDescriptors.Orderings

All Known Implementing Classes:
DefaultModuleDescriptorOrderingsFactory
Enclosing class:
ModuleDescriptors

public static interface ModuleDescriptors.Orderings

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

Since:
v4.4
See Also:
Ordering

Method Summary
 com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor> byOrigin()
          Creates an ordering instance that orders module descriptors according to the "origin" of the plugin they come from.
 com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor> natural()
          Creates an Ordering instance that orders module descriptors according to their "natural" order.
 

Method Detail

byOrigin

com.google.common.collect.Ordering<com.atlassian.plugin.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.
See Also:
ByOriginModuleDescriptorOrdering

natural

com.google.common.collect.Ordering<com.atlassian.plugin.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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.