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

a way to sort objects in the priority queue on a secondary(etc) attribute when the primary attribute is equal #32

Closed
antonytrupe opened this issue Oct 2, 2015 · 1 comment

Comments

@antonytrupe
Copy link
Contributor

This will probably require a function in each object that takes a parameter that is a second object.
This also means evaluate in PriorityQueue will need to be modified to pass the second object to the first object.
This is the same as overriding compareTo in java.

@antonytrupe
Copy link
Contributor Author

re: issue #33

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