private static class MethodUtils.MethodDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
cls |
private boolean |
exact |
private int |
hashCode |
private java.lang.String |
methodName |
private java.lang.Class<?>[] |
paramTypes |
Constructor and Description |
---|
MethodDescriptor(java.lang.Class<?> cls,
java.lang.String methodName,
java.lang.Class<?>[] paramTypes,
boolean exact)
The sole constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Checks for equality.
|
int |
hashCode()
Returns the string length of method name.
|
private final java.lang.Class<?> cls
private final java.lang.String methodName
private final java.lang.Class<?>[] paramTypes
private final boolean exact
private final int hashCode
public MethodDescriptor(java.lang.Class<?> cls, java.lang.String methodName, java.lang.Class<?>[] paramTypes, boolean exact)
cls
- the class to reflect, must not be nullmethodName
- the method name to obtainparamTypes
- the array of classes representing the parameter typesexact
- whether the match has to be exact.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- object to be tested for equalitypublic int hashCode()
hashCode
in class java.lang.Object
Copyright (c) 2000-2008 - Apache Software Foundation