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

Method matchesAllOf

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

Returns true if a character sequence contains only matching characters. The default implementation iterates over the sequence, invoking #matches for each character, until this returns false or the end is reached. @param sequence the character sequence to examine, possibl

(CharSequence sequence)

Source from the content-addressed store, hash-verified

589 * the sequence is empty
590 */
591 public boolean matchesAllOf(CharSequence sequence) {
592 for (int i = sequence.length() - 1; i >= 0; i--) {
593 if (!matches(sequence.charAt(i))) {
594 return false;
595 }
596 }
597 return true;
598 }
599
600 /**
601 * Returns {@code true} if a character sequence contains no matching characters. Equivalent to

Callers 4

matchesNoneOfMethod · 0.45
normalizeTokenMethod · 0.45
applyMethod · 0.45
validatePartMethod · 0.45

Calls 2

matchesMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected