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

group.rxcloud.capa.addons.serialzer.value.checker.StringArgumentChecker Maven / Gradle / Ivy

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

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

public class StringArgumentChecker implements ValueChecker {

    public static final StringArgumentChecker DEFAULT = new StringArgumentChecker();

    @Override
    public void check(String value, String valueName) {
        if (StringValues.isNullOrWhitespace(value))
            throw new IllegalArgumentException("argument " + valueName + " is null or whitespace");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy