Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getElementTypeOfCollection (0.11 sec)

  1. 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)
  2. src/main/java/org/codelibs/core/lang/FieldUtil.java

         * @return the element type of the collection
         */
        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.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * </p>
         *
         * @param type
         *            the type to analyze
         * @return the element type of the collection, or null if not a parameterized collection
         */
        public static Type getElementTypeOfCollection(final Type type) {
            if (!isTypeOf(type, Collection.class)) {
                return null;
            }
            return getGenericParameter(type, 0);
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
Back to top