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

com.nls.validation.RequiredCollectionValidator Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
package com.nls.validation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.Collection;

public class RequiredCollectionValidator implements ConstraintValidator {

    public void initialize(Required parameters) {

    }

    public boolean isValid(Collection object, ConstraintValidatorContext context) {
        return object != null && !object.isEmpty();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy