in src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java [104:121]
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AsynchronousSearchPersistenceModel other = (AsynchronousSearchPersistenceModel) o;
return
startTimeMillis == other.startTimeMillis && expirationTimeMillis == other.expirationTimeMillis
&& ((response == null && other.response == null) ||
(response != null && other.response != null && response.equals(other.response)))
&& ((error == null && other.error == null) ||
(error != null && other.error != null && error.equals(other.error)))
&& ((user == null && other.user == null) ||
(user != null && other.user != null && user.equals(other.user)));
}