(Strength strength)
| 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); |
no test coverage detected