private void mergeWriteConcernError(final WriteConcernError writeConcernError) { if (writeConcernError != null) { if (writeConcernErrors.isEmpty()) { writeConcernErrors.add(writeConcernError); } else if (!writeConcernError.equals(writeConcernErrors.get(writeConcernErrors.size() - 1))) { writeConcernErrors.add(writeConcernError); } } }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final MongoBulkWriteException that = (MongoBulkWriteException) o; if (!errors.equals(that.errors)) { return false; } if (!serverAddress.equals(that.serverAddress)) { return false; } if (writeConcernError != null ? !writeConcernError.equals(that.writeConcernError) : that.writeConcernError != null) { return false; } if (!writeResult.equals(that.writeResult)) { return false; } return true; }
private void mergeWriteConcernError(final WriteConcernError writeConcernError) { if (writeConcernError != null) { if (writeConcernErrors.isEmpty()) { writeConcernErrors.add(writeConcernError); } else if (!writeConcernError.equals(writeConcernErrors.get(writeConcernErrors.size() - 1))) { writeConcernErrors.add(writeConcernError); } } }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final MongoBulkWriteException that = (MongoBulkWriteException) o; if (!errors.equals(that.errors)) { return false; } if (!serverAddress.equals(that.serverAddress)) { return false; } if (writeConcernError != null ? !writeConcernError.equals(that.writeConcernError) : that.writeConcernError != null) { return false; } if (!writeResult.equals(that.writeResult)) { return false; } return true; }