Package tigase.util

## Class ClassComparator

- java.lang.Object
- - tigase.util.ClassComparator

- All Implemented Interfaces:
    `java.io.Serializable`, `java.util.Comparator<java.lang.Class>`

      public class ClassComparator
      extends java.lang.Object
      implements java.util.Comparator<java.lang.Class>, java.io.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

  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
    --- | --- | ---
    `int` | `compare​(java.lang.Class c1, java.lang.Class c2)` | Method `compare` is 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`

- - ### Constructor Detail

    - #### ClassComparator

          public ClassComparator()

  - ### Method Detail

    - #### compare

          public int compare​(java.lang.Class c1,
                             java.lang.Class c2)

      Method `compare` is used to perform
      Specified by:
        `compare` in interface `java.util.Comparator<java.lang.Class>`
      Parameters:
        `c1` - an `Object` value
        `c2` - an `Object` value
      Returns:
        an `int` value