Returns a string representation for this MapMaker instance. The exact form of the returned string is not specificed.
()
| 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 |
nothing calls this directly
no test coverage detected