- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isTypeOf (0.05 sec)
-
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
assertThat(GenericsUtil.isTypeOf(t1, List.class), is(true)); assertThat(GenericsUtil.getElementTypeOfList(t1), is(sameClass(String.class))); final Method m2 = ListType.class.getMethod("listOfClass"); final Type t2 = m2.getGenericReturnType(); assertThat(GenericsUtil.isTypeOf(t2, List.class), is(true));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/GenericsUtil.java
* @param clazz * the class to check against. Cannot be null. * @return <code>true</code> if the raw type of <code>type</code> can be assigned to <code>clazz</code> */ public static boolean isTypeOf(final Type type, final Class<?> clazz) { assertArgumentNotNull("type", type); assertArgumentNotNull("clazz", clazz); if (type instanceof Class) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.4K bytes - Viewed (0)