org.apache.logging.log4j.core.config
Class OrderComparator

java.lang.Object
  extended by org.apache.logging.log4j.core.config.OrderComparator
All Implemented Interfaces:
Comparator<Class<?>>

public class OrderComparator
extends Object
implements Comparator<Class<?>>

Comparator for classes annotated with Order.

Since:
2.1

Constructor Summary
OrderComparator()
           
 
Method Summary
 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
 

Constructor Detail

OrderComparator

public OrderComparator()
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 interface Comparator<Class<?>>


Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.