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

org.fugerit.java.core.util.CheckUtils Maven / Gradle / Ivy

package org.fugerit.java.core.util;

/*
 * 
 *
 * @author Fugerit
 *
 */
public class CheckUtils {

	public static final boolean isTrue( Object obj ) {
		String value = String.valueOf( obj );
		return "1".equalsIgnoreCase( value ) || "true".equalsIgnoreCase( value );
	}
	
	public static final boolean isEmpty( String s ) {
		return s == null || s.trim().length() == 0;
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy