Java Code Examples for org.apache.commons.lang.StringUtils.containsAny()

The following are Jave code examples for showing how to use containsAny() of the org.apache.commons.lang.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: intellij-spring-assistant   File: YamlValueInsertHandler.java   Source Code and License Vote up 4 votes
private boolean shouldUseQuotes(final LookupElement lookupElement) {
  return StringUtils.containsAny(lookupElement.getLookupString(), RESERVED_YAML_CHARS);
}
 
Example 2
Project: otter-G   File: ConfigHelper.java   Source Code and License Vote up 4 votes
private static boolean isWildCard(String value) {
    return StringUtils.containsAny(value, new char[] { '*', '?', '+', '|', '(', ')', '{', '}', '[', ']', '\\', '$',
            '^', '.' });
}