|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.curjent.impl.agent.CallKey
final class CallKey
Key to map interface methods to call sites. Each interface method is uniquely identified by its name, return type, and parameter types.
Field Summary | |
---|---|
private static Class<?>[] |
empty
A null list of parameter types is the same as an empty list. |
private int |
hash
Cached hash code value of the name, result, and params. |
private String |
method
Name of the method. |
private Class<?>[] |
params
Method's list of parameter types. |
private Class<?> |
result
Method's return type. |
Constructor Summary | |
---|---|
CallKey(Method method)
Unique key for a given method. |
|
CallKey(String method,
Class<?> result,
Class<?>[] params)
Unique key for a method's name, result, and parameters. |
Method Summary | |
---|---|
boolean |
equals(Object o)
true if a CallKey for the same method. |
int |
hashCode()
Hash value for the method's name, result type, and parameter types. |
String |
toString()
Description of this key's method. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final String method
private final Class<?> result
private final Class<?>[] params
private static final Class<?>[] empty
null
list of parameter types is the same as an empty list.
private final int hash
Constructor Detail |
---|
CallKey(Method method)
CallKey(String method, Class<?> result, Class<?>[] params)
Method Detail |
---|
public boolean equals(Object o)
true
if a CallKey
for the same method.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |