org.jboss.jca.deployers.fungal
Class RAActivatorComparator

java.lang.Object
  extended by 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:
Serialized Form

Method Summary
 int compare(String o1, String o2)
          Compare
 boolean equals(Object o)
          Equals
 int hashCode()
          Hash code
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)