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 Compareable interface to change comparison logic #1307

Closed
wants to merge 2 commits into from

Conversation

mdietger
Copy link

@mdietger mdietger commented Jun 4, 2024

By default, the spaceship operator is used to compare 2 objects with each other.
This does not always result in what we expect.

We can adjust the way objects are being compared by implementing the Compareable interface.
This will provide us with a compareTo function that can tweak the comparison logic.

@github-actions github-actions bot added the stale label Jun 26, 2024
@github-actions github-actions bot closed this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant