示例#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;
 }