Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getKeyClassOfMap (0.13 sec)

  1. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public Class<?> getKeyClassOfMap(final int index) {
            assertArgumentArrayIndex("index", index, parameterTypes.length);
    
            if (!Map.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) {
                return null;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public Class<?> getKeyClassOfMap(final int index) {
            assertArgumentArrayIndex("index", index, parameterTypes.length);
    
            if (!Map.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) {
                return null;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/MethodDesc.java

         * メソッドの引数型がパラメタ化された{@link Map}の場合、そのキー型を返します。
         *
         * @param index
         *            引数のインデックス
         * @return メソッドの引数がパラメタ化された{@link Map}の場合はそのキー型、そうでない場合は{@literal null}
         */
        Class<?> getKeyClassOfMap(int index);
    
        /**
         * メソッドの引数型がパラメタ化された{@link Map}の場合、その値型を返します。
         *
         * @param index
         *            引数のインデックス
         * @return メソッドの引数型がパラメタ化された{@link Map}の場合はその値型、そうでない場合は{@literal null}
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            final BeanDesc bd = BeanDescFactory.getBeanDesc(Hoge.class);
            PropertyDesc pd = bd.getPropertyDesc("baz");
            assertThat(pd.isParameterized(), is(true));
            assertThat(pd.getKeyClassOfMap(), is(sameClass(String.class)));
            assertThat(pd.getValueClassOfMap(), is(sameClass(Date.class)));
    
            ParameterizedClassDesc pcd = pd.getParameterizedClassDesc();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

         */
        @Test
        public void testMap() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final FieldDesc hoge = beanDesc.getFieldDesc("map");
            assertThat(hoge.getKeyClassOfMap(), is(sameClass(String.class)));
            assertThat(hoge.getValueClassOfMap(), is(sameClass(Integer.class)));
        }
    
        /**
         *
         */
        @SuppressWarnings("unused")
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public Class<?> getKeyClassOfMap() {
            if (!Map.class.isAssignableFrom(propertyType) || !isParameterized()) {
                return null;
            }
            final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[0];
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top