com.atlassian.jira.plugin.util.orderings
Class DefaultModuleDescriptorOrderingsFactory

java.lang.Object
  extended by com.atlassian.jira.plugin.util.orderings.DefaultModuleDescriptorOrderingsFactory
All Implemented Interfaces:
ModuleDescriptors.Orderings

public class DefaultModuleDescriptorOrderingsFactory
extends Object
implements ModuleDescriptors.Orderings

Since:
v4.4

Constructor Summary
DefaultModuleDescriptorOrderingsFactory(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModuleDescriptorOrderingsFactory

public DefaultModuleDescriptorOrderingsFactory(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
Method Detail

byOrigin

public com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor> byOrigin()
Description copied from interface: ModuleDescriptors.Orderings
Creates an ordering instance that orders module descriptors according to the "origin" of the plugin they come from.

Specified by:
byOrigin in interface ModuleDescriptors.Orderings
Returns:
An ordering instance that orders module descriptors according to the "origin" of the plugin they come from.
See Also:
ByOriginModuleDescriptorOrdering

natural

public com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor> natural()
Description copied from interface: ModuleDescriptors.Orderings
Creates an Ordering instance that orders module descriptors according to their "natural" order. Natural order is based on the module descriptor's complete key

Specified by:
natural in interface ModuleDescriptors.Orderings
Returns:
An Ordering instance that orders module descriptors according to their "natural" order.


Copyright © 2002-2012 Atlassian. All Rights Reserved.