All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.droidparts.dexmaker.mockito.ObjectMethodsGuru2 Maven / Gradle / Ivy

Go to download

A Java-language API for doing compile time or runtime code generation targeting the Dalvik VM.

The newest version!
package org.droidparts.dexmaker.mockito;

import java.lang.reflect.Method;

public abstract class ObjectMethodsGuru2 {
	
    public static boolean isEqualsMethod(Method method) {
        return method.getName().equals("equals")
                && method.getParameterTypes().length == 1
                && method.getParameterTypes()[0] == Object.class;
	}
	
    public static boolean isHashCodeMethod(Method method) {
        return method.getName().equals("hashCode")
                && method.getParameterTypes().length == 0;
    }
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy