- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getElementClassOfCollection (0.08 sec)
-
src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java
BeanDesc bd = BeanDescFactory.getBeanDesc(Hoge.class); PropertyDesc pd = bd.getPropertyDesc("foo"); assertThat(pd.isParameterized(), is(true)); assertThat(pd.getElementClassOfCollection(), is(sameClass(String.class))); ParameterizedClassDesc pcd = pd.getParameterizedClassDesc(); assertThat(pcd.getRawClass(), is(sameClass(List.class)));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 13.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java
} @Override public ParameterizedClassDesc getParameterizedClassDesc() { return parameterizedClassDesc; } @Override public Class<?> getElementClassOfCollection(final int index) { assertArgumentArrayIndex("index", index, parameterTypes.length); if (!Collection.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/MethodDesc.java
* the index of the parameter * @return the element type if the parameter type at the specified index is a parameterized {@link Collection}, otherwise {@literal null} */ Class<?> getElementClassOfCollection(int index); /** * Returns the key type if the method's parameter type at the specified index is a parameterized {@link Map}. * * @param index
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/ConstructorDesc.java
* * @param index * The index of the parameter * @return The element type if the parameter type is a parameterized {@link Collection}, otherwise {@literal null} */ Class<?> getElementClassOfCollection(int index); /** * Returns the key type if the parameter type of the method is a parameterized {@link Map}. * * @param index * The index of the parameter
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/FieldDesc.java
* * @return the element type if this field is a parameterized {@link Collection}, otherwise {@literal null} */ Class<?> getElementClassOfCollection(); /** * Returns the key type if this field is a parameterized {@link Map}. * * @return the key type if this field is a parameterized {@link Map}, otherwise {@literal null} */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/PropertyDesc.java
* * @return the element type if this property is a parameterized {@link Collection}, otherwise {@literal null} */ Class<?> getElementClassOfCollection(); /** * Returns the key type if this property is a parameterized {@link Map}. * * @return the key type if this property is a parameterized {@link Map}, otherwise {@literal null}
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/FieldDescImpl.java
} @Override public ParameterizedClassDesc getParameterizedClassDesc() { return parameterizedClassDesc; } @Override public Class<?> getElementClassOfCollection() { if (!Collection.class.isAssignableFrom(fieldType) || !isParameterized()) { return null; } final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[0];
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
@Test public void testList() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final FieldDesc hoge = beanDesc.getFieldDesc("list"); assertThat(hoge.getElementClassOfCollection(), is(sameClass(String.class))); } /** * @throws Exception */ @Test public void testMap() throws Exception {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java
} @Override public ParameterizedClassDesc getParameterizedClassDesc() { return parameterizedClassDesc; } @Override public Class<?> getElementClassOfCollection() { if (!Collection.class.isAssignableFrom(propertyType) || !isParameterized()) { return null; } final ParameterizedClassDesc pcd = parameterizedClassDesc.getArguments()[0];
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 15.1K bytes - Viewed (0)