public static boolean containsOnlyNotNull ( Object ... values ) { for ( Object o : values ) { if ( o == null ) { return false ; } } return true ; }
Check that an array only contains elements that are not null .