- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getValueTypeOfMapFromReturnType (0.14 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 Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/MethodUtil.java
* * @param method * メソッド。{@literal null}であってはいけません * @return 指定されたメソッドの戻り値型として宣言されているパラメタ化されたマップの値型 */ public static Class<?> getValueTypeOfMapFromReturnType(final Method method) { assertArgumentNotNull("method", method); final Type returnType = method.getGenericReturnType();
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 13.8K bytes - Viewed (0)