net.contextfw.web.application.configuration.IntegerProperty Maven / Gradle / Ivy
package net.contextfw.web.application.configuration;
public class IntegerProperty extends BaseProperty
implements SettableProperty {
public IntegerProperty(String key) {
super(key);
}
@Override
public Integer unserialize(String value) {
return value == null ? null : Integer.parseInt(value);
}
@Override
public String serialize(Integer value) {
return value == null ? null : value.toString();
}
@Override
public Integer validate(Integer value) {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy