Пример #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;
 }