org.apache.ws.jaxme.js.pattern
Class MethodKey
java.lang.Object
org.apache.ws.jaxme.js.pattern.MethodKey
- Comparable
public class MethodKey
extends java.lang.Object
implements Comparable
This class is a key for generated methods. The main
purpose is to determine, whether some method is
present in more than one interface. In that case
we have to ensure, that it is generated only once.
int | compareTo(Object o) - Compares this GeneratedMethod to the given GeneratedMethod
o .
|
boolean | equals(Object o) - Returns whether this method key equals the object
o .
|
int | hashCode()
|
compareTo
public int compareTo(Object o)
Compares this GeneratedMethod to the given GeneratedMethod o
.
More precise, compares the method name, the number of parameters
and the class names of the parameters, in that order.
equals
public boolean equals(Object o)
Returns whether this method key equals the object o
.
This is the case, if o != null
,
o instanceof MethodKey
,
and compareTo(o) == 0
.
hashCode
public int hashCode()