Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GenericsUtil (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top