com.sptci
Class ReflectionUtility.MethodEntry

java.lang.Object
  extended by com.sptci.ReflectionUtility.MethodEntry
Enclosing class:
ReflectionUtility

private static class ReflectionUtility.MethodEntry
extends Object

A holder object to store a combination of a method name and parameter array.


Field Summary
private  String name
          The name of the method.
private  Class[] parameters
          The array of types of the method parameters.
 
Constructor Summary
private ReflectionUtility.MethodEntry(String name, Class[] parameters)
          Create a new instance of the holder object using the specified values.
 
Method Summary
 boolean equals(Object object)
          Over-ridden to implement proper equality checking.
 int hashCode()
          Computes a hash code for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private final String name
The name of the method.


parameters

private final Class[] parameters
The array of types of the method parameters.

Constructor Detail

ReflectionUtility.MethodEntry

private ReflectionUtility.MethodEntry(String name,
                                      Class[] parameters)
Create a new instance of the holder object using the specified values.

Parameters:
name - The name value to use.
parameters - The parameters value to use.
Method Detail

equals

public boolean equals(Object object)
Over-ridden to implement proper equality checking. Objects are equal if they are of the same class and have the same values for name and parameters.

Overrides:
equals in class Object
Parameters:
object - The object that is to be checked for equality.

hashCode

public int hashCode()
Computes a hash code for the object.

Overrides:
hashCode in class Object
Returns:
The hash code computed using the object fields.