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

Default comparators for Positions #195

Open
buehlefs opened this issue Oct 23, 2020 · 2 comments
Open

Default comparators for Positions #195

buehlefs opened this issue Oct 23, 2020 · 2 comments

Comments

@buehlefs
Copy link
Collaborator

There are no default comparators for positions.
Positions are often sorted before they can be used in a TaskVerifier.
It would be beneficial to provide one or more comparator to be used by the TaskVerifiers.

@Vogel612
Copy link
Collaborator

Vogel612 commented Oct 23, 2020

Comparator.comparing(Position::getX).thenComparing(Position::getY) seems quite... workable to me

@buehlefs
Copy link
Collaborator Author

I will leave this issue open for now as this should be added to the documentation of Position.
This would make this option more visible expecially for java newcomers (and someone who does not know much about the Comparator package from java like me...)

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

No branches or pull requests

2 participants