- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getKeyClassOfMap (0.06 sec)
-
src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java
if (pcd == null) { return null; } return pcd.getRawClass(); } @Override public Class<?> getKeyClassOfMap(final int index) { assertArgumentArrayIndex("index", index, parameterTypes.length); if (!Map.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) { return null;
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
* @param index * the index of the parameter * @return the key type if the parameter type at the specified index is a parameterized {@link Map}, otherwise {@literal null} */ Class<?> getKeyClassOfMap(int index); /** * Returns the value type if the method's parameter type at the specified index 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 - 5.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/ConstructorDesc.java
* * @param index * The index of the parameter * @return The key type if the parameter type is a parameterized {@link Map}, otherwise {@literal null} */ Class<?> getKeyClassOfMap(int index); /** * Returns the value 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
/** * 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} */ Class<?> getKeyClassOfMap(); /** * Returns the value type if this field is a parameterized {@link Map}. * * @return the value 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
/** * 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} */ Class<?> getKeyClassOfMap(); /** * Returns the value type if this property is a parameterized {@link Map}. * * @return the value 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
if (pcd == null) { return null; } return pcd.getRawClass(); } @Override public Class<?> getKeyClassOfMap() { if (!Map.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 testMap() throws Exception { 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")
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 5K bytes - Viewed (0)