Class RAActivatorComparator

java.lang.Object
org.jboss.jca.deployers.fungal.RAActivatorComparator
All Implemented Interfaces:
Serializable, Comparator<String>

public class RAActivatorComparator extends Object implements Comparator<String>, Serializable
The comparator for the RA activator
Author:
Jesper Pedersen
See Also:
  • Method Details

    • compare

      public int compare(String o1, String o2)
      Compare
      Specified by:
      compare in interface Comparator<String>
      Parameters:
      o1 - The first object
      o2 - The second object
      Returns:
      -1 if o1 should be invoked first, 1 if o2 should be invoked first, otherwise 0
    • hashCode

      public int hashCode()
      Hash code
      Overrides:
      hashCode in class Object
      Returns:
      The hash
    • equals

      public boolean equals(Object o)
      Equals
      Specified by:
      equals in interface Comparator<String>
      Overrides:
      equals in class Object
      Parameters:
      o - The object
      Returns:
      True if equal; otherwise false