- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getValueClassOfMap (0.12 sec)
-
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) -
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) -
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) -
src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java
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(); assertThat(pcd.getRawClass(), is(sameClass(Map.class))); assertThat(pcd.getArguments().length, is(2));
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/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) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
if (pcd == null) { return null; } return pcd.getRawClass(); } @Override public Class<?> getValueClassOfMap() { if (!Map.class.isAssignableFrom(propertyType) || !isParameterized()) { return null; } final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[1];
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 15.3K bytes - Viewed (0)