package org.rocksdb;
+import java.util.Objects;
+
/**
* Represents the status returned by a function call in RocksDB.
*
return value;
}
}
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+ if (o == null || getClass() != o.getClass())
+ return false;
+ Status status = (Status) o;
+ return code == status.code && subCode == status.subCode && Objects.equals(state, status.state);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(code, subCode, state);
+ }
}