- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for isTypeOf (0.05 seconds)
-
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) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 23.4K bytes - Click Count (0) -
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));
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 11.5K bytes - Click Count (0)