public static < T > boolean containsNull ( T ... hayStack ) { if ( hayStack == null ) return false ; for ( T hay : hayStack ) if ( hay == null ) return true ; return false ; }
Does an array contain a null value?