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

Method toString

output/java_guava/1.4.19/MapMaker.java:367–386  ·  view source on GitHub ↗

Returns a string representation for this MapMaker instance. The exact form of the returned string is not specificed.

()

Source from the content-addressed store, hash-verified

365 */
366
367 @Override
368 public String toString() {
369 MoreObjects.ToStringHelper s = MoreObjects.toStringHelper(this);
370 if (initialCapacity != UNSET_INT) {
371 s.add("initialCapacity", initialCapacity);
372 }
373 if (concurrencyLevel != UNSET_INT) {
374 s.add("concurrencyLevel", concurrencyLevel);
375 }
376 if (keyStrength != null) {
377 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString()));
378 }
379 if (valueStrength != null) {
380 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString()));
381 }
382 if (keyEquivalence != null) {
383 s.addValue("keyEquivalence");
384 }
385 return s.toString();
386 }
387
388 /**
389 * Overrides get() to compute on demand. Also throws an exception when {@code null} is returned

Callers

nothing calls this directly

Calls 5

toStringHelperMethod · 0.95
toLowerCaseMethod · 0.95
addMethod · 0.65
toStringMethod · 0.65
addValueMethod · 0.45

Tested by

no test coverage detected