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

Method setKeyStrength

output/java_guava/1.4.18/MapMaker.java:216–224  ·  view source on GitHub ↗
(Strength strength)

Source from the content-addressed store, hash-verified

214 }
215
216 MapMaker setKeyStrength(Strength strength) {
217 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength);
218 keyStrength = checkNotNull(strength);
219 if (strength != Strength.STRONG) {
220 // STRONG could be used during deserialization.
221 useCustomMap = true;
222 }
223 return this;
224 }
225
226 Strength getKeyStrength() {
227 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