Class OrderComparator
java.lang.Object
org.apache.logging.log4j.core.config.OrderComparator
- All Implemented Interfaces:
Serializable
,Comparator<Class<?>>
Comparator for classes annotated with
Order
.- Since:
- 2.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<Class<?>>
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static Comparator<Class<?>>
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
-
Constructor Details
-
OrderComparator
public OrderComparator()
-
-
Method Details
-
getInstance
Returns a singleton instance of this class.- Returns:
- the singleton for this class.
-
compare
- Specified by:
compare
in interfaceComparator<Class<?>>
-