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

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

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

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

import java.util.Collection;

public class CollectionArgumentChecker implements ValueChecker> {

    public static final CollectionArgumentChecker DEFAULT = new CollectionArgumentChecker();

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy