(Strength strength)
| 209 | } |
| 210 | |
| 211 | MapMaker setKeyStrength(Strength strength) { |
| 212 | checkState(keyStrength == null, "Key strength was already set to %s", keyStrength); |
| 213 | keyStrength = checkNotNull(strength); |
| 214 | if (strength != Strength.STRONG) { |
| 215 | // STRONG could be used during deserialization. |
| 216 | useCustomMap = true; |
| 217 | } |
| 218 | return this; |
| 219 | } |
| 220 | |
| 221 | Strength getKeyStrength() { |
| 222 | return MoreObjects.firstNonNull(keyStrength, Strength.STRONG); |
no test coverage detected