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

Method matchesAnyOf

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

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