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

Method precomputed

output/java_guava/1.4.13/CharMatcher.java:545–547  ·  view source on GitHub ↗

Returns a char matcher functionally equivalent to this one, but which may be faster to query than the original; your mileage may vary. Precomputation takes time and is likely to be worthwhile only if the precomputed matcher is queried many thousands of times. This method has no effect (r

()

Source from the content-addressed store, hash-verified

543
544
545 public CharMatcher precomputed() {
546 return Platform.precomputeCharMatcher(this);
547 }
548
549 private static final int DISTINCT_CHARS = Character.MAX_VALUE - Character.MIN_VALUE + 1;
550

Callers

nothing calls this directly

Calls 1

precomputeCharMatcherMethod · 0.95

Tested by

no test coverage detected