public static int listContainsNoCase ( String list , String value , String delimiter , boolean includeEmptyFields , boolean multiCharacterDelimiter ) { if ( StringUtil . isEmpty ( value ) ) return - 1 ; Array arr = listToArray ( list , delimiter , includeEmptyFields , multiCharacterDelimiter ) ; int len = arr . size ( ) ; for ( int i = 1 ; i <= len ; i ++ ) { if ( StringUtil . indexOfIgnoreCase ( arr . get ( i , "" ) . toString ( ) , value ) != - 1 ) return i - 1 ; } return - 1 ; }
returns if a value of the list contains given value ignore case