ClassComparator

public class ClassComparator implements Comparator<Class>, Serializable

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

Author:Artur Hefczyc

Methods

compare

public int compare(Class c1, Class c2)

Method compare is used to perform

Parameters:
  • c1 – an Object value
  • c2 – an Object value
Returns:

an int value