Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add equals(), hashCode() and toString() to RiakObject and friends #648

Merged
merged 4 commits into from
Jul 22, 2016

Conversation

alexmoore
Copy link
Contributor

@alexmoore alexmoore commented Jul 22, 2016

Superscedes #557, corrects formatting and adds another test.

Added equals(), hashCode() and toString() methods to RiakObject.

Dependent classes RiakLinks, RiakUserMetadata and RiakObject also got those methods added to allow sensible comparison of any RiakObject. This allows checking parameters for equality in unit tests when mocking out RiakClient.

Thanks to @stela for the original PR.

Stefan Larsson and others added 4 commits October 22, 2015 11:17
 Dependent classes RiakLinks, RiakUserMetadata and RiakObject also got those methods added to allow sensible comparison of any RiakObject. This allows checking parameters for equality in unit tests when mocking out RiakClient.
@alexmoore alexmoore merged commit 0ea22a3 into develop Jul 22, 2016
@alexmoore alexmoore deleted the stela-RiakObject-equals_hashCode_toString branch July 22, 2016 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant