public static boolean containsOnlyNull(Object... values){	
		for(Object o : values){
			if(o!= null){
				return false;
			}
		}
		return true;
	}
public static boolean containsOnlyNull ( Object ... values ) { for ( Object o : values ) { if ( o != null ) { return false ; } } return true ; }
Check that an array only contains null elements.
@param values, can't be null
@return