Package tigase.util
Class ClassComparator
java.lang.Object
tigase.util.ClassComparator
- All Implemented Interfaces:
Serializable,Comparator<Class>
In a few cases classes have to be kept in
Set. This Comparator implementation has been
created to return proper value for compare method and to make it possible to store classes in any
Set.
Created: Sat Oct 9 22:27:54 2004
- Version:
- $Rev$
- Author:
- Artur Hefczyc
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ClassComparator
public ClassComparator()
-
-
Method Details
-
compare
Methodcompareis used to perform- Specified by:
comparein interfaceComparator<Class>- Parameters:
c1- anObjectvaluec2- anObjectvalue- Returns:
- an
intvalue
-