- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getElementTypeOfCollectionFromParameterType (0.39 sec)
-
src/test/java/org/codelibs/core/lang/MethodUtilTest.java
Method m = Baz.class.getMethod("rawList", List.class); assertThat(MethodUtil.getElementTypeOfCollectionFromParameterType(m, 0), is(nullValue())); m = Baz.class.getMethod("genericList", List.class); assertThat(MethodUtil.getElementTypeOfCollectionFromParameterType(m, 0), is(sameClass(Integer.class))); } /** * @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
* The position of the parameterized collection in the method's argument list * @return The element type of the parameterized collection */ public static Class<?> getElementTypeOfCollectionFromParameterType(final Method method, final int position) { assertArgumentNotNull("method", method); final Type[] parameterTypes = method.getGenericParameterTypes();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.6K bytes - Viewed (0)