- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for getRawClass (0.1 sec)
-
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) -
src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java
ParameterizedClassDesc pcd = pd.getParameterizedClassDesc(); assertThat(pcd.getRawClass(), is(sameClass(Map.class))); assertThat(pcd.getArguments().length, is(2)); assertThat(pcd.getArguments()[0].getRawClass(), is(sameClass(String.class))); assertThat(pcd.getArguments()[1].getRawClass(), is(sameClass(Date.class))); pd = bd.getPropertyDesc("hege");
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 13.9K bytes - Viewed (0) -
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) -
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) -
src/main/java/org/codelibs/core/lang/MethodUtil.java
assertArgumentNotNull("method", method); final Type[] parameterTypes = method.getGenericParameterTypes(); return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(parameterTypes[position])); } /** * 指定されたメソッドの戻り値型として宣言されているパラメタ化されたコレクションの要素型を返します。 * * @param method
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 13.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
return null; } final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[0]; if (pcd == null) { return null; } return pcd.getRawClass(); } @Override public Class<?> getKeyClassOfMap() { if (!Map.class.isAssignableFrom(propertyType) || !isParameterized()) { return null; }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 15.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
*/ public static Class<?> getElementTypeOfCollection(final Field field) { assertArgumentNotNull("field", field); final Type type = field.getGenericType(); return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(type)); } /** * パラメタ化されたマップ型のフィールドのキー型を返します。 * * @param field * パラメタ化されたマップ型のフィールド。{@literal null}であってはいけません
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11.3K bytes - Viewed (0) -
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) -
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) -
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)