![JAR search and dependency download from the Maven repository](/logo.png)
org.droidparts.dexmaker.mockito.ObjectMethodsGuru2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dexmaker-mockito Show documentation
Show all versions of dexmaker-mockito Show documentation
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