MCPcopy
hub / github.com/google/guava / matchesAnyOf

Method matchesAnyOf

guava/src/com/google/common/base/CharMatcher.java:496–498  ·  view source on GitHub ↗

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

(CharSequence sequence)

Source from the content-addressed store, hash-verified

494 * @since 8.0
495 */
496 public boolean matchesAnyOf(CharSequence sequence) {
497 return !matchesNoneOf(sequence);
498 }
499
500 /**
501 * Returns {@code true} if a character sequence contains only matching BMP characters.

Callers 7

reallyTestEmptyMethod · 0.45
reallyTestNoMatchesMethod · 0.45
reallyTestAllMatchesMethod · 0.45

Calls 1

matchesNoneOfMethod · 0.95

Tested by 7

reallyTestEmptyMethod · 0.36
reallyTestNoMatchesMethod · 0.36
reallyTestAllMatchesMethod · 0.36