Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getElementClassOfCollection (0.08 sec)

  1. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            BeanDesc bd = BeanDescFactory.getBeanDesc(Hoge.class);
            PropertyDesc pd = bd.getPropertyDesc("foo");
            assertThat(pd.isParameterized(), is(true));
            assertThat(pd.getElementClassOfCollection(), is(sameClass(String.class)));
    
            ParameterizedClassDesc pcd = pd.getParameterizedClassDesc();
            assertThat(pcd.getRawClass(), is(sameClass(List.class)));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

        }
    
        @Override
        public ParameterizedClassDesc getParameterizedClassDesc() {
            return parameterizedClassDesc;
        }
    
        @Override
        public Class<?> getElementClassOfCollection(final int index) {
            assertArgumentArrayIndex("index", index, parameterTypes.length);
    
            if (!Collection.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/MethodDesc.java

         *            the index of the parameter
         * @return the element type if the parameter type at the specified index is a parameterized {@link Collection}, otherwise {@literal null}
         */
        Class<?> getElementClassOfCollection(int index);
    
        /**
         * Returns the key type if the method's parameter type at the specified index is a parameterized {@link Map}.
         *
         * @param index
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/ConstructorDesc.java

         *
         * @param index
         *            The index of the parameter
         * @return The element type if the parameter type is a parameterized {@link Collection}, otherwise {@literal null}
         */
        Class<?> getElementClassOfCollection(int index);
    
        /**
         * Returns the key type if the parameter type of the method is a parameterized {@link Map}.
         *
         * @param index
         *            The index of the parameter
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/FieldDesc.java

         *
         * @return the element type if this field is a parameterized {@link Collection}, otherwise {@literal null}
         */
        Class<?> getElementClassOfCollection();
    
        /**
         * Returns the key type if this field is a parameterized {@link Map}.
         *
         * @return the key type if this field is a parameterized {@link Map}, otherwise {@literal null}
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/PropertyDesc.java

         *
         * @return the element type if this property is a parameterized {@link Collection}, otherwise {@literal null}
         */
        Class<?> getElementClassOfCollection();
    
        /**
         * Returns the key type if this property is a parameterized {@link Map}.
         *
         * @return the key type if this property is a parameterized {@link Map}, otherwise {@literal null}
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/FieldDescImpl.java

        }
    
        @Override
        public ParameterizedClassDesc getParameterizedClassDesc() {
            return parameterizedClassDesc;
        }
    
        @Override
        public Class<?> getElementClassOfCollection() {
            if (!Collection.class.isAssignableFrom(fieldType) || !isParameterized()) {
                return null;
            }
            final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[0];
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

        @Test
        public void testList() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final FieldDesc hoge = beanDesc.getFieldDesc("list");
            assertThat(hoge.getElementClassOfCollection(), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testMap() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        }
    
        @Override
        public ParameterizedClassDesc getParameterizedClassDesc() {
            return parameterizedClassDesc;
        }
    
        @Override
        public Class<?> getElementClassOfCollection() {
            if (!Collection.class.isAssignableFrom(propertyType) || !isParameterized()) {
                return null;
            }
            final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[0];
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top