
org.wiztools.commons.NullUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-lib Show documentation
Show all versions of commons-lib Show documentation
Commons library used across WizTools.org projects
The newest version!
/*
* Copyright WizTools.org
* Licensed under the Apache License, Version 2.0:
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.wiztools.commons;
/**
*
* @author subhash
*/
public class NullUtil {
private NullUtil() {}
public static boolean isAnyNull(Object ... l) {
for(Object o: l) {
if(o == null) return true;
}
return false;
}
public static boolean isAllNull(Object ... l) {
for(Object o: l) {
if(o != null) return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy