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

Method toString

output/java_guava/1.4.16/MapMaker.java:365–384  ·  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

363 */
364
365 @Override
366 public String toString() {
367 MoreObjects.ToStringHelper s = MoreObjects.toStringHelper(this);
368 if (initialCapacity != UNSET_INT) {
369 s.add("initialCapacity", initialCapacity);
370 }
371 if (concurrencyLevel != UNSET_INT) {
372 s.add("concurrencyLevel", concurrencyLevel);
373 }
374 if (keyStrength != null) {
375 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString()));
376 }
377 if (valueStrength != null) {
378 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString()));
379 }
380 if (keyEquivalence != null) {
381 s.addValue("keyEquivalence");
382 }
383 return s.toString();
384 }
385
386 /**
387 * 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