public static boolean startsWithIgnoreCase ( String name , Iterable < String > patterns ) { String nameUpper = name . toUpperCase ( ) ; for ( String pattern : patterns ) { String patternUpper = pattern . toUpperCase ( ) ; if ( nameUpper . equals ( patternUpper ) || nameUpper . startsWith ( patternUpper ) ) { return true ; } } return false ; }
Does the given column name starts with one of pattern given in parameter Not case sensitive