예제 #1
0
 @Override
 public Bean<T> set(Consumer<T> propertyInvoker, Value value) {
   Property descriptor = OutlineImpl.this.property(propertyInvoker);
   Class<?> type = descriptor.type();
   propertySetterSwitch.doSwitch(type, descriptor, instance, value);
   return this;
 }
예제 #2
0
 @Override
 protected Void caseLongWrapper(Property value1, T value2, Value value3) {
   value1.set(value2, (Long) value3.asObject(Long.class));
   return null;
 }
예제 #3
0
 @Override
 protected Void caseLong(Property value1, T value2, Value value3) {
   value1.set(value2, value3.asLong());
   return null;
 }
예제 #4
0
 @Override
 protected Void caseIntegerWrapper(Property value1, T value2, Value value3) {
   value1.set(value2, (Integer) value3.asObject(Integer.class));
   return null;
 }
예제 #5
0
 @Override
 protected Void caseInteger(Property value1, T value2, Value value3) {
   value1.set(value2, value3.asInteger());
   return null;
 }
예제 #6
0
 @Override
 protected Void caseShortWrapper(Property value1, T value2, Value value3) {
   value1.set(value2, (Short) value3.asObject(Short.class));
   return null;
 }
예제 #7
0
 @Override
 protected Void caseByteWrapper(Property value1, T value2, Value value3) {
   value1.set(value2, (Byte) value3.asObject(Byte.class));
   return null;
 }
예제 #8
0
 @Override
 protected Void caseBoolean(Property value1, T value2, Value value3) {
   value1.set(value2, value3.asBoolean());
   return null;
 }
예제 #9
0
 @Override
 protected Void defaultCase(Property value1, T value2, Value value3) {
   value1.set(value2, value3.asString());
   return null;
 }
예제 #10
0
 @Override
 protected Void caseByteArray(Property value1, T value2, Value value3) {
   value1.set(value2, value3.asByteArray());
   return null;
 }
예제 #11
0
 @Override
 protected Void caseDouble(Property value1, T value2, Value value3) {
   value1.set(value2, value3.asDouble());
   return null;
 }