- Sort Score
- Result 10 results
- Languages All
Results 11 - 12 of 12 for getRawClass (0.28 sec)
-
src/main/java/org/codelibs/core/lang/GenericsUtil.java
* @return <code>type</code>の原型 */ public static Class<?> getRawClass(final Type type) { if (type instanceof Class) { return Class.class.cast(type); } if (type instanceof ParameterizedType) { final ParameterizedType parameterizedType = ParameterizedType.class.cast(type); return getRawClass(parameterizedType.getRawType()); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 23.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
final Method m1 = ArrayType.class.getMethod("arrayOfStringClass"); final Type t1 = m1.getGenericReturnType(); final Type t2 = GenericsUtil.getElementTypeOfArray(t1); assertThat(GenericsUtil.getRawClass(t2), is(sameClass(Class.class))); assertThat(GenericsUtil.getGenericParameter(t2, 0), is(sameClass(String.class))); } /** * @throws Exception */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11.5K bytes - Viewed (0)