Package org.apache.commons.beanutils
Class MethodUtils.MethodDescriptor
java.lang.Object
org.apache.commons.beanutils.MethodUtils.MethodDescriptor
- Enclosing class:
MethodUtils
Represents the key to looking up a Method by reflection.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMethodDescriptor
(Class<?> cls, String methodName, Class<?>[] paramTypes, boolean exact) The sole constructor. -
Method Summary
-
Field Details
-
cls
-
methodName
-
paramTypes
-
exact
private final boolean exact -
hashCode
private final int hashCode
-
-
Constructor Details
-
MethodDescriptor
The sole constructor.- Parameters:
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.
-
-
Method Details
-
equals
Checks for equality. -
hashCode
public int hashCode()Returns the string length of method name. I.e. if the hashcodes are different, the objects are different. If the hashcodes are the same, need to use the equals method to determine equality.
-