352353354355356357358359360361362
CharShortMap map = (CharShortMap) obj; if (map.size() != 1) { return false; } return map.containsKey(this.key1) && this.value1 == map.getOrThrow(this.key1); } @Override public int hashCode() {
188189190191192193194195196197198
return false; } if (this.sentinelValues == null) { if (other.containsKey(EMPTY_KEY) || other.containsKey(REMOVED_KEY)) { return false; } } else
195196197198199200201202203204205
return false; } } else { if (this.sentinelValues.containsZeroKey && (!other.containsKey(EMPTY_KEY) || this.sentinelValues.zeroValue != other.getOrThrow(EMPTY_KEY))) { return false; } if (this.sentinelValues.containsOneKey && (!other.containsKey(REMOVED_KEY) || this.sentinelValues.oneValue != other.getOrThrow(REMOVED_KEY)))
200201202203204205206207208209210
if (this.sentinelValues.containsZeroKey && (!other.containsKey(EMPTY_KEY) || this.sentinelValues.zeroValue != other.getOrThrow(EMPTY_KEY))) { return false; } if (this.sentinelValues.containsOneKey && (!other.containsKey(REMOVED_KEY) || this.sentinelValues.oneValue != other.getOrThrow(REMOVED_KEY))) { return false; } }
209210211212213214215216217218219
} for (int i = 0; i < this.keys.length; i++) { char key = this.keys[i]; if (isNonSentinel(key) && (!other.containsKey(key) || this.values[i] != other.getOrThrow(key))) { return false; } } return true;