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

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

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

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

public class LongParser implements ValueParser {

    public static final LongParser DEFAULT = new LongParser();

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

        return Long.parseLong(value.trim());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy