MCPcopy Create free account
hub / github.com/antlr/codebuff / matchesAnyOf

Method matchesAnyOf

corpus/java/training/guava/base/CharMatcher.java:577–579  ·  view source on GitHub ↗

Returns true if a character sequence contains at least one matching character. Equivalent to !matchesNoneOf(sequence). The default implementation iterates over the sequence, invoking #matches for each character, until this returns true or the end is reached. @par

(CharSequence sequence)

Source from the content-addressed store, hash-verified

575 * @since 8.0
576 */
577 public boolean matchesAnyOf(CharSequence sequence) {
578 return !matchesNoneOf(sequence);
579 }
580
581 /**
582 * Returns {@code true} if a character sequence contains only matching characters.

Callers

nothing calls this directly

Calls 1

matchesNoneOfMethod · 0.95

Tested by

no test coverage detected