307308309310311312313314315316317
CharBooleanMap map = (CharBooleanMap) obj; if (map.size() != 1) { return false; } return map.containsKey(this.key1) && this.value1 == map.getOrThrow(this.key1); } @Override public int hashCode() {
918919920921922923924925926927928
return false; } if (this.sentinelValues == null) { if (other.containsKey(EMPTY_KEY) || other.containsKey(REMOVED_KEY)) { return false; } } else
925926927928929930931932933934935
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)))
930931932933934935936937938939940
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; } }
939940941942943944945946947948949
} for (int i = 0; i < this.keys.length; i++) { char key = this.keys[i]; if (isNonSentinel(key) && (!other.containsKey(key) || this.values.get(i) != other.getOrThrow(key))) { return false; } } return true;