org.apache.commons.beanutils
Class MethodUtils.MethodDescriptor
java.lang.Object
org.apache.commons.beanutils.MethodUtils.MethodDescriptor
- MethodUtils
private static class MethodUtils.MethodDescriptor
extends java.lang.Object
Represents the key to looking up a Method by reflection.
MethodDescriptor(Class cls, String methodName, Class[] paramTypes, boolean exact) - The sole constructor.
|
boolean | equals(Object obj) - Checks for equality.
|
int | hashCode() - Returns the string length of method name.
|
exact
private boolean exact
hashCode
private int hashCode
methodName
private String methodName
paramTypes
private Class[] paramTypes
MethodDescriptor
public MethodDescriptor(Class cls,
String methodName,
Class[] paramTypes,
boolean exact)
The sole constructor.
cls
- the class to reflect, must not be nullmethodName
- the method name to obtainparamTypes
- the array of classes representing the paramater typesexact
- whether the match has to be exact.
equals
public boolean equals(Object obj)
Checks for equality.
obj
- object to be tested for equality
- true, if the object describes the same Method.
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.
- the string length of method name.
Copyright (c) 2001-2004 - Apache Software Foundation