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

Method setValueStrength

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

Source from the content-addressed store, hash-verified

251 }
252
253 MapMaker setValueStrength(Strength strength) {
254 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength);
255 valueStrength = checkNotNull(strength);
256 if (strength != Strength.STRONG) {
257 // STRONG could be used during deserialization.
258 useCustomMap = true;
259 }
260 return this;
261 }
262
263 Strength getValueStrength() {
264 return MoreObjects.firstNonNull(valueStrength, Strength.STRONG);

Callers 3

weakValuesMethod · 0.95
readMapMakerMethod · 0.45
recreateCacheBuilderMethod · 0.45

Calls 2

checkStateMethod · 0.45
checkNotNullMethod · 0.45

Tested by

no test coverage detected