|
20 | 20 | import com.basho.riak.client.core.operations.StoreBucketPropsOperation;
|
21 | 21 | import com.basho.riak.client.core.query.Namespace;
|
22 | 22 | import com.basho.riak.client.core.query.functions.Function;
|
| 23 | +import java.util.Objects; |
23 | 24 |
|
24 | 25 | /**
|
25 | 26 | * Command used to store (modify) the properties of a bucket in Riak.
|
@@ -215,6 +216,48 @@ protected StoreBucketPropsOperation buildCoreOperation()
|
215 | 216 | return builder.build();
|
216 | 217 | }
|
217 | 218 |
|
| 219 | + @Override |
| 220 | + public boolean equals(Object other) { |
| 221 | + if (this == other) { |
| 222 | + return true; |
| 223 | + } |
| 224 | + if (!(other instanceof StoreBucketProperties)) { |
| 225 | + return false; |
| 226 | + } |
| 227 | + StoreBucketProperties otherStoreBucketProperties = (StoreBucketProperties) other; |
| 228 | + return Objects.equals(namespace, otherStoreBucketProperties.namespace) && |
| 229 | + Objects.equals(allowMulti, otherStoreBucketProperties.allowMulti) && |
| 230 | + Objects.equals(backend, otherStoreBucketProperties.backend) && |
| 231 | + Objects.equals(basicQuorum, otherStoreBucketProperties.basicQuorum) && |
| 232 | + Objects.equals(bigVClock, otherStoreBucketProperties.bigVClock) && |
| 233 | + Objects.equals(chashkeyFunction, otherStoreBucketProperties.chashkeyFunction) && |
| 234 | + Objects.equals(lastWriteWins, otherStoreBucketProperties.lastWriteWins) && |
| 235 | + Objects.equals(linkWalkFunction, otherStoreBucketProperties.linkWalkFunction) && |
| 236 | + Objects.equals(rw, otherStoreBucketProperties.rw) && |
| 237 | + Objects.equals(dw, otherStoreBucketProperties.dw) && |
| 238 | + Objects.equals(w, otherStoreBucketProperties.w) && |
| 239 | + Objects.equals(r, otherStoreBucketProperties.r) && |
| 240 | + Objects.equals(pr, otherStoreBucketProperties.pr) && |
| 241 | + Objects.equals(pw, otherStoreBucketProperties.pw) && |
| 242 | + Objects.equals(notFoundOk, otherStoreBucketProperties.notFoundOk) && |
| 243 | + Objects.equals(preCommitHook, otherStoreBucketProperties.preCommitHook) && |
| 244 | + Objects.equals(postCommitHook, otherStoreBucketProperties.postCommitHook) && |
| 245 | + Objects.equals(oldVClock, otherStoreBucketProperties.oldVClock) && |
| 246 | + Objects.equals(youngVClock, otherStoreBucketProperties.youngVClock) && |
| 247 | + Objects.equals(smallVClock, otherStoreBucketProperties.smallVClock) && |
| 248 | + Objects.equals(nval, otherStoreBucketProperties.nval) && |
| 249 | + Objects.equals(legacySearch, otherStoreBucketProperties.legacySearch) && |
| 250 | + Objects.equals(searchIndex, otherStoreBucketProperties.searchIndex) && |
| 251 | + Objects.equals(hllPrecision, otherStoreBucketProperties.hllPrecision); |
| 252 | + } |
| 253 | + |
| 254 | + @Override |
| 255 | + public int hashCode() { |
| 256 | + return Objects.hash(namespace, allowMulti, backend, basicQuorum, bigVClock, chashkeyFunction, lastWriteWins, |
| 257 | + linkWalkFunction, rw, dw, w, r, pr, pw, notFoundOk, preCommitHook, postCommitHook, oldVClock, |
| 258 | + youngVClock, smallVClock, nval, legacySearch, searchIndex, hllPrecision); |
| 259 | + } |
| 260 | + |
218 | 261 | public static class Builder
|
219 | 262 | {
|
220 | 263 | private final Namespace namespace;
|
|
0 commit comments