- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getValueTypeOfMapFromReturnType (0.12 sec)
-
src/test/java/org/codelibs/core/lang/MethodUtilTest.java
Method m = Baz.class.getMethod("rawMap", Map.class); assertThat(MethodUtil.getValueTypeOfMapFromReturnType(m), is(nullValue())); m = Baz.class.getMethod("genericMap", Map.class); assertThat(MethodUtil.getValueTypeOfMapFromReturnType(m), is(sameClass(Class.class))); } /** * */ public interface Baz { /**
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 The value type of the parameterized map */ public static Class<?> getValueTypeOfMapFromReturnType(final Method method) { assertArgumentNotNull("method", method); final Type returnType = method.getGenericReturnType();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.6K bytes - Viewed (0)