Class Plugin.PluginComparator

  • All Implemented Interfaces:
    java.util.Comparator<Plugin>
    Enclosing class:
    Plugin

    @Deprecated
    public static class Plugin.PluginComparator
    extends java.lang.Object
    implements java.util.Comparator<Plugin>
    Deprecated.
    this comparator does not properly sort complex plugins dependencies. Use PluginManager.orderPlugins(Collection, boolean) for proper topological sorting of all plugins.
    Comparator class used to compare Plugins:
    • Check dependencies of each other
    • Check dependencies size
    • Check plugin order
    • Check plugin name
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginComparator()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int compare​(Plugin p1, Plugin p2)
      Deprecated.
       
      • 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 Detail

      • PluginComparator

        public PluginComparator()
        Deprecated.
    • Method Detail

      • compare

        public int compare​(Plugin p1,
                           Plugin p2)
        Deprecated.
        Specified by:
        compare in interface java.util.Comparator<Plugin>