- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for GenericsUtil (0.09 sec)
-
src/main/java/org/codelibs/core/lang/GenericsUtil.java
import org.codelibs.core.collection.CollectionsUtil; /** * Utility class for handling generics in Java. * * @author koichik */ public abstract class GenericsUtil { /** * Do not instantiate. */ protected GenericsUtil() { } /** * Returns <code>true</code> if the raw type of <code>type</code> can be assigned to <code>clazz</code>, * <code>false</code> otherwise. *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
assertThat(GenericsUtil.isTypeOf(t1, Set.class), is(true)); assertThat(GenericsUtil.getElementTypeOfSet(t1), is(sameClass(String.class))); final Method m2 = SetType.class.getMethod("setOfClass"); final Type t2 = m2.getGenericReturnType(); assertThat(GenericsUtil.isTypeOf(t2, Set.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/MethodUtil.java
assertArgumentNotNull("method", method); final Type[] parameterTypes = method.getGenericParameterTypes(); return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(parameterTypes[position])); } /** * Returns the element type of the parameterized collection declared as the method's return type. * * @param method
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
*/ public static Class<?> getElementTypeOfCollection(final Field field) { assertArgumentNotNull("field", field); final Type type = field.getGenericType(); return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(type)); } /** * Returns the key type of a parameterized map field. * * @param field a field of a parameterized map type (must not be {@literal null})
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
import static org.codelibs.core.collection.CollectionsUtil.newHashSet; import static org.codelibs.core.lang.GenericsUtil.getActualClass; import static org.codelibs.core.lang.GenericsUtil.getGenericParameters; import static org.codelibs.core.lang.GenericsUtil.getTypeVariableMap; import static org.codelibs.core.misc.AssertionUtil.assertArgumentArrayIndex;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 25.8K bytes - Viewed (1)