- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for setFieldValue (0.05 seconds)
-
src/main/java/org/codelibs/core/beans/FieldDesc.java
* * @param target * the target object. Must not be {@literal null} * @param value * the value of the {@link Field} */ void setFieldValue(Object target, Object value); /** * Sets the value of the static {@link Field}. * * @param value * the value of the {@link Field} */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/impl/FieldDescImpl.java
if (!isStatic()) { throw new FieldNotStaticRuntimeException(beanDesc.getBeanClass(), fieldName); } return FieldUtil.get(field); } @Override public void setFieldValue(final Object target, final Object value) { assertArgumentNotNull("target", target); FieldUtil.set(field, target, value); } @Override
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
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))); } /** * @throws Exception */ @Test(expected = FieldNotStaticRuntimeException.class)
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 5K bytes - Click Count (0)