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

Method matchesNoneOf

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

Returns {@code true} if a character sequence contains no matching BMP characters. Equivalent to {@code !matchesAnyOf(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. @param seq

(CharSequence sequence)

Source from the content-addressed store, hash-verified

528 * sequence is empty
529 */
530 public boolean matchesNoneOf(CharSequence sequence) {
531 return indexIn(sequence) == -1;
532 }
533
534 /**
535 * Returns the index of the first matching BMP character in a character sequence, or {@code -1} if

Callers 9

matchesAnyOfMethod · 0.95
matchesAllOfMethod · 0.45
reallyTestEmptyMethod · 0.45
reallyTestNoMatchesMethod · 0.45
reallyTestAllMatchesMethod · 0.45

Calls 1

indexInMethod · 0.95

Tested by 7

reallyTestEmptyMethod · 0.36
reallyTestNoMatchesMethod · 0.36
reallyTestAllMatchesMethod · 0.36