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

Method setValueStrength

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

Source from the content-addressed store, hash-verified

253 }
254
255 MapMaker setValueStrength(Strength strength) {
256 checkState(valueStrength == null, "Value strength was already set to %s", valueStrength);
257 valueStrength = checkNotNull(strength);
258 if (strength != Strength.STRONG) {
259 // STRONG could be used during deserialization.
260 useCustomMap = true;
261 }
262 return this;
263 }
264
265 Strength getValueStrength() {
266 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