Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getRawClass (0.06 sec)

  1. src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java

            assertThat(desc.getRawClass(), is(sameClass(Set.class)));
            ParameterizedClassDesc[] args = desc.getArguments();
            assertThat(args.length, is(1));
            assertThat(args[0].getRawClass(), is(sameClass(Integer.class)));
    
            desc = ParameterizedClassDescFactory.createParameterizedClassDesc(method, 1, map);
            assertThat(desc.getRawClass(), is(sameClass(Map.class)));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

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

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

        /**
         * 原型となるクラスを返します。
         *
         * @param <T>
         *            原型となるクラスの型
         * @return 原型となるクラス
         * @see ParameterizedType#getRawType()
         */
        <T> Class<T> getRawClass();
    
        /**
         * 型引数を表す{@link ParameterizedClassDesc}の配列を返します。
         * <p>
         * このインスタンスが表現するクラスがパラメタ化されたクラスでない場合は、{@literal null}を返します。
         * </p>
         *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/ParameterizedClassDescImpl.java

        }
    
        @Override
        public boolean isParameterizedClass() {
            return arguments != null;
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public <T> Class<T> getRawClass() {
            return (Class<T>) rawClass;
        }
    
        /**
         * 原型となるクラスを設定します。
         *
         * @param rawClass
         *            原型となるクラス。{@literal null}であってはいけません
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            assertThat(parameterizedClassDesc, is(notNullValue()));
            assertThat(parameterizedClassDesc.isParameterizedClass(), is(true));
            assertThat(parameterizedClassDesc.getRawClass(), is(sameClass(Class.class)));
            final MyBean myBean = new MyBean();
            aaa.setFieldValue(myBean, String.class);
            assertThat(aaa.getFieldValue(myBean), is(sameClass(String.class)));
        }
    
        /**
    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