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

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

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

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

import java.util.Map;

public class MapArgumentChecker implements ValueChecker> {

    public static final MapArgumentChecker DEFAULT = new MapArgumentChecker();

    @Override
    public void check(Map value, String valueName) {
        if (MapValues.isNullOrEmpty(value))
            throw new IllegalArgumentException("argument " + valueName + " is null or empty");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy