use of com.tvd12.dahlia.core.setting.FieldIntegerSetting in project dahlia by youngmonkeys.
the class SettingObjectToIntegerField method newSetting.
@Override
protected FieldIntegerSetting newSetting(SettingObjectToFields mappers, EzyObject object) {
FieldIntegerSetting setting = new FieldIntegerSetting();
setting.setDefaultValue(object.get(SettingFields.DEFAULT, int.class));
setting.setMaxValue(object.get(SettingFields.MAX_VALUE, int.class));
return setting;
}
Aggregations