Package tigase.util
Class ClassComparator
- java.lang.Object
-
- tigase.util.ClassComparator
-
- All Implemented Interfaces:
Serializable,Comparator<Class>
public class ClassComparator extends Object implements Comparator<Class>, Serializable
In a few cases classes have to be kept inSet. ThisComparatorimplementation has been created to return proper value forcomparemethod and to make it possible to store classes in anySet.
Created: Sat Oct 9 22:27:54 2004
- Version:
- $Rev$
- Author:
- Artur Hefczyc
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Class c1, Class c2)Methodcompareis used to perform-
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
-
compare
public int compare(Class c1, Class c2)
Methodcompareis used to perform- Specified by:
comparein interfaceComparator<Class>- Parameters:
c1- anObjectvaluec2- anObjectvalue- Returns:
- an
intvalue
-
-