All Downloads are FREE. Search and download functionalities are using the official Maven repository.

group.rxcloud.capa.addons.serialzer.value.parser.IntegerParser Maven / Gradle / Ivy

package group.rxcloud.capa.addons.serialzer.value.parser;

import group.rxcloud.capa.addons.serialzer.value.StringValues;

public class IntegerParser implements ValueParser {

    public static final IntegerParser DEFAULT = new IntegerParser();

    @Override
    public Integer parse(String value) {
        if (StringValues.isNullOrWhitespace(value))
            return null;

        return Integer.parseInt(value.trim());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy