- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isToStringMethod (0.33 sec)
-
src/test/java/org/codelibs/core/lang/MethodUtilTest.java
final Method toStringMethod = ClassUtil.getMethod(getClass(), "toString"); assertThat(MethodUtil.isToStringMethod(toStringMethod), is(true)); final Method hashCodeMethod = ClassUtil.getMethod(getClass(), "hashCode"); assertThat(MethodUtil.isToStringMethod(hashCodeMethod), is(not(true))); } /** * @throws Exception */ @Test
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 toString()} */ public static boolean isToStringMethod(final Method method) { assertArgumentNotNull("method", method); return method != null && method.getName().equals("toString") && method.getReturnType() == String.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)