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

com.bld.commons.utils.CommonUtility Maven / Gradle / Ivy

There is a newer version: 2.0.6
Show newest version
package com.bld.commons.utils;

public class CommonUtility {

	
	public static boolean isAssignableFrom(ClassclassObj,Class... classes) {
		for(Classclazz:classes) {
			if(clazz.isAssignableFrom(classObj))
				return true;
		}
		return false;
	}
	
	public static boolean isAssignableFrom(Object obj,Class... classes) {
		boolean assignableFrom=false;
		if(obj!=null)
			assignableFrom=isAssignableFrom(obj.getClass(), classes);
		return assignableFrom;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy