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

Method setKeyStrength

output/java_guava/1.4.19/MapMaker.java:218–226  ·  view source on GitHub ↗
(Strength strength)

Source from the content-addressed store, hash-verified

216 }
217
218 MapMaker setKeyStrength(Strength strength) {
219 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength);
220 keyStrength = checkNotNull(strength);
221 if (strength != Strength.STRONG) {
222 // STRONG could be used during deserialization.
223 useCustomMap = true;
224 }
225 return this;
226 }
227
228 Strength getKeyStrength() {
229 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG);

Callers 3

weakKeysMethod · 0.95
readMapMakerMethod · 0.45
recreateCacheBuilderMethod · 0.45

Calls 2

checkStateMethod · 0.45
checkNotNullMethod · 0.45

Tested by

no test coverage detected