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

Implement swap() method on mutable primitive lists #911

Merged
merged 1 commit into from
Jun 11, 2020

Conversation

vmzakharov
Copy link
Contributor

Implement swap(index1, index2) method for swapping two list elements. Add corresponding tests on mutable primitive list tests and default implementations on the respective primitive list interfaces.

Signed-off-by: vmzakharov zakharov.vladimir.m@gmail.com

Copy link
Contributor

@donraab donraab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @vmzakharov, thanks for the contribution. I think there is a missing file for unmodifiable primitive collections throwing UnsupportedOperationException for swap. Please confirm.

Copy link
Contributor

@donraab donraab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution @vmzakharov !

@donraab
Copy link
Contributor

donraab commented Jun 10, 2020

@vmzakharov please rebase your PR and @nikhilnanivadekar can merge.

Signed-off-by: vmzakharov <zakharov.vladimir.m@gmail.com>
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.

3 participants