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

Method matchesAllOf

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

659
660
661 public boolean matchesAllOf(CharSequence sequence) {
662 for (int i = sequence.length() - 1; i >= 0; i--) {
663 if (!matches(sequence.charAt(i))) {
664 return false;
665 }
666 }
667 return true;
668 }
669
670 /**
671 * Returns {@code true} if a character sequence contains no matching characters. Equivalent to

Callers 1

matchesNoneOfMethod · 0.45

Calls 2

matchesMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected