Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getValueClassOfMap (0.09 sec)

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

            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public Class<?> getValueClassOfMap(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<?> getValueClassOfMap(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<?> getValueClassOfMap(int index);
    
        /**
         * メソッドの戻り値型がパラメタ化された{@link Collection}の場合、その要素型を返します。
         *
         * @return メソッドの戻り値型がパラメタ化された{@link Collection}の場合はその要素型、そうでない場合は
         *         {@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/FieldDescImplTest.java

            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")
        public static class MyBean {
            /** */
            public static final String HOGE = "hoge";
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top