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

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

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

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

public class BooleanParser implements ValueParser {

    public static final BooleanParser DEFAULT = new BooleanParser();

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

        return Boolean.parseBoolean(value.trim());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy