public class ByOriginModuleDescriptorOrdering
extends com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor>
Orders module descriptors according to the "origin" of the plugin they come from. The origin of a
plugin can be one of "user installed" or "system" as determined by the
plugin metadata manager.
Module descriptors coming from user plugins are considered to be "greater than" the ones coming from system plugins.
PluginMetadataManager| Modifier and Type | Method and Description |
|---|---|
int |
compare(com.atlassian.plugin.ModuleDescriptor o1,
com.atlassian.plugin.ModuleDescriptor o2) |
allEqual, arbitrary, binarySearch, compound, compound, explicit, explicit, from, from, greatestOf, greatestOf, immutableSortedCopy, isOrdered, isStrictlyOrdered, leastOf, leastOf, lexicographical, max, max, max, max, min, min, min, min, natural, nullsFirst, nullsLast, onResultOf, reverse, sortedCopy, usingToStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(com.atlassian.plugin.ModuleDescriptor o1,
com.atlassian.plugin.ModuleDescriptor o2)
compare in interface Comparator<com.atlassian.plugin.ModuleDescriptor>compare in class com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor>Copyright © 2002-2018 Atlassian. All Rights Reserved.