in curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncResultImpl.java [89:107]
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AsyncResultImpl<?> that = (AsyncResultImpl<?>) o;
if (value != null ? !value.equals(that.value) : that.value != null) {
return false;
}
//noinspection SimplifiableIfStatement
if (code != that.code) {
return false;
}
return exception != null ? exception.equals(that.exception) : that.exception == null;
}