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

org.nico.cat.mvc.verify.NotNullVerifier Maven / Gradle / Ivy

package org.nico.cat.mvc.verify;

import org.nico.cat.mvc.scan.annotations.NotNull;
import org.nico.cat.mvc.exception.VerifyException;

public class NotNullVerifier extends Verifier{

	@Override
	public boolean verify(NotNull verifier, Object value) {
		if(value == null) {
			return false;
		}
		return true;
	}

	@Override
	void throwError(NotNull verifier) {
		throw new VerifyException(verifier.message());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy