@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; }
@Override protected Void caseLongWrapper(Property value1, T value2, Value value3) { value1.set(value2, (Long) value3.asObject(Long.class)); return null; }
@Override protected Void caseLong(Property value1, T value2, Value value3) { value1.set(value2, value3.asLong()); return null; }
@Override protected Void caseIntegerWrapper(Property value1, T value2, Value value3) { value1.set(value2, (Integer) value3.asObject(Integer.class)); return null; }
@Override protected Void caseInteger(Property value1, T value2, Value value3) { value1.set(value2, value3.asInteger()); return null; }
@Override protected Void caseShortWrapper(Property value1, T value2, Value value3) { value1.set(value2, (Short) value3.asObject(Short.class)); return null; }
@Override protected Void caseByteWrapper(Property value1, T value2, Value value3) { value1.set(value2, (Byte) value3.asObject(Byte.class)); return null; }
@Override protected Void caseBoolean(Property value1, T value2, Value value3) { value1.set(value2, value3.asBoolean()); return null; }
@Override protected Void defaultCase(Property value1, T value2, Value value3) { value1.set(value2, value3.asString()); return null; }
@Override protected Void caseByteArray(Property value1, T value2, Value value3) { value1.set(value2, value3.asByteArray()); return null; }
@Override protected Void caseDouble(Property value1, T value2, Value value3) { value1.set(value2, value3.asDouble()); return null; }