- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for isToStringMethod (0.17 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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.classCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 12.6K bytes - Click Count (0) -
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
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 5.5K bytes - Click Count (0)