Class OrderComparator
- java.lang.Object
-
- org.apache.logging.log4j.core.config.OrderComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Class<?>>
public class OrderComparator extends Object implements Comparator<Class<?>>, Serializable
Comparator for classes annotated withOrder
.- 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(Class<?> lhs, Class<?> rhs)
static Comparator<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
-
-
-
-
Method Detail
-
getInstance
public static Comparator<Class<?>> getInstance()
Returns a singleton instance of this class.- Returns:
- the singleton for this class.
-
compare
public int compare(Class<?> lhs, Class<?> rhs)
- Specified by:
compare
in interfaceComparator<Class<?>>
-
-