Class OwningPluginAndModuleNamesComparator
java.lang.Object
com.atlassian.confluence.plugins.contentproperty.index.config.OwningPluginAndModuleNamesComparator
- All Implemented Interfaces:
Comparator<ContentPropertyIndexSchemaModuleDescriptor>
public class OwningPluginAndModuleNamesComparator
extends Object
implements Comparator<ContentPropertyIndexSchemaModuleDescriptor>
Allows comparison of
ContentPropertyIndexSchemaModuleDescriptor
based on their owning plugin names and module
names. Plugin names starting with BUNDLED_PLUGINS_PACKAGE_PREFIX
prefix
will be privileged over other names, because otherwise index schema defined in bundled plugins might be discarded in
case of schema collision.- Since:
- 5.7
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(ContentPropertyIndexSchemaModuleDescriptor left, ContentPropertyIndexSchemaModuleDescriptor right) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OwningPluginAndModuleNamesComparator
public OwningPluginAndModuleNamesComparator()
-
-
Method Details
-
compare
public int compare(ContentPropertyIndexSchemaModuleDescriptor left, ContentPropertyIndexSchemaModuleDescriptor right) - Specified by:
compare
in interfaceComparator<ContentPropertyIndexSchemaModuleDescriptor>
-