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

org.aksw.jena_sparql_api.views.TernaryLogic Maven / Gradle / Ivy

The newest version!
package org.aksw.jena_sparql_api.views;

public class TernaryLogic {
	// a/b
	//   t n f
	// t t n f
	// n n n f
	// f f f f
	public static Boolean and(Boolean a, Boolean b) {
		if(a == Boolean.TRUE && b == Boolean.TRUE) {
			return Boolean.TRUE;
		} else if(a == Boolean.FALSE || b == Boolean.FALSE) {
			return Boolean.FALSE;
		} else {
			return null;
		}
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy