Class OrderComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<java.lang.Class<?>>

    public class OrderComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.Class<?>>, java.io.Serializable
    Comparator for classes annotated with Order.
    Since:
    2.1
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderComparator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Class<?> lhs, java.lang.Class<?> rhs)  
      static java.util.Comparator<java.lang.Class<?>> getInstance()
      Returns a singleton instance of this class.
      • 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

      • OrderComparator

        public OrderComparator()
    • Method Detail

      • getInstance

        public static java.util.Comparator<java.lang.Class<?>> getInstance()
        Returns a singleton instance of this class.
        Returns:
        the singleton for this class.
      • compare

        public int compare​(java.lang.Class<?> lhs,
                           java.lang.Class<?> rhs)
        Specified by:
        compare in interface java.util.Comparator<java.lang.Class<?>>