public static boolean containsAtLeastOneNonBlank ( List < String > list ) { for ( String str : list ) { if ( StringUtils . isNotBlank ( str ) ) { return true ; } } return false ; }
Check that a list allowing null and empty item contains at least one element that is not blank .