checks if the string contains any character in the given set of characters . a null string will return false . a null or zero length search array will return false . stringutils.containsany null , = false stringutils.containsany '' '' , = false stringutils.containsany , null = false stringutils.containsany , = false stringutils.containsany `` zzabyycdxx '' , ` z ' , ` a ' = true stringutils.containsany `` zzabyycdxx '' , ` b ' , ` y ' = true stringutils.containsany `` aba '' , ` z ' = false concode_field_sep PlaceHolder placeHolder concode_field_sep boolean containsAll
boolean function ( final String arg0 , final char [ ] arg1 ) { if ( StringHelper . hasText ( arg0 ) && ArrayHelper . isNotEmpty ( arg1 ) ) for ( final char loc0 : arg0 . toCharArray ( ) ) if ( ArrayHelper . contains ( arg1 , loc0 ) ) return true ; return false ; }