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

Method matchesAnyOf

output/java_guava/1.4.18/CharMatcher.java:647–649  ·  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

645
646
647 public boolean matchesAnyOf(CharSequence sequence) {
648 return !matchesNoneOf(sequence);
649 }
650
651 /**
652 * 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