- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isHashCodeMethod (0.08 sec)
-
src/test/java/org/codelibs/core/lang/MethodUtilTest.java
final Method hashCodeMethod = ClassUtil.getMethod(getClass(), "hashCode"); assertThat(MethodUtil.isHashCodeMethod(hashCodeMethod), is(true)); final Method equalsMethod = ClassUtil.getMethod(getClass(), "equals", Object.class); assertThat(MethodUtil.isHashCodeMethod(equalsMethod), is(not(true))); } /** * */ @Test public void testIsToStringMethod() {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/MethodUtil.java
* * @param method * The method. Cannot be {@literal null} * @return {@literal true} if the method is {@literal hashCode()} */ public static boolean isHashCodeMethod(final Method method) { assertArgumentNotNull("method", method); return method != null && method.getName().equals("hashCode") && method.getReturnType() == int.class
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.6K bytes - Viewed (0)