org.unitils.util
Class MethodUtils

java.lang.Object
  extended by org.unitils.util.MethodUtils

public class MethodUtils
extends Object

Author:
Filip Neven, Tim Ducheyne

Constructor Summary
MethodUtils()
           
 
Method Summary
static boolean isCloneMethod(Method method)
           
static boolean isEqualsMethod(Method method)
           
static boolean isFinalizeMethod(Method method)
           
static boolean isHashCodeMethod(Method method)
           
static boolean isToStringMethod(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodUtils

public MethodUtils()
Method Detail

isEqualsMethod

public static boolean isEqualsMethod(Method method)
Parameters:
method - The method to check, not null
Returns:
True if the given method is the Object.equals(java.lang.Object) method

isHashCodeMethod

public static boolean isHashCodeMethod(Method method)
Parameters:
method - The method to check, not null
Returns:
True if the given method is the Object.hashCode() method

isToStringMethod

public static boolean isToStringMethod(Method method)
Parameters:
method - The method to check, not null
Returns:
True if the given method is the Object.toString() method

isCloneMethod

public static boolean isCloneMethod(Method method)
Parameters:
method - The method to check, not null
Returns:
True if the given method is the Object.clone() method

isFinalizeMethod

public static boolean isFinalizeMethod(Method method)


Copyright © 2011. All Rights Reserved.