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

Method toString

corpus/java/training/guava/collect/MapMaker.java:354–373  ·  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

352 * string is not specificed.
353 */
354 @Override
355 public String toString() {
356 MoreObjects.ToStringHelper s = MoreObjects.toStringHelper(this);
357 if (initialCapacity != UNSET_INT) {
358 s.add("initialCapacity", initialCapacity);
359 }
360 if (concurrencyLevel != UNSET_INT) {
361 s.add("concurrencyLevel", concurrencyLevel);
362 }
363 if (keyStrength != null) {
364 s.add("keyStrength", Ascii.toLowerCase(keyStrength.toString()));
365 }
366 if (valueStrength != null) {
367 s.add("valueStrength", Ascii.toLowerCase(valueStrength.toString()));
368 }
369 if (keyEquivalence != null) {
370 s.addValue("keyEquivalence");
371 }
372 return s.toString();
373 }
374
375 /**
376 * 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