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 method replaceAll, instead of hiding non supported operations #1526

Closed
wants to merge 3 commits into from

Conversation

Paramecium0
Copy link

@Paramecium0 Paramecium0 commented Apr 25, 2021

#1514 When users want to replace all tags with other tags, they may use replaceAll(). But this will not work at all because the original method replaceAll() is inherited from ArrayList on Elements. To solve this issue, both implementing the method replaceAll() and hiding non-supported operations work. By using for loop and lambda, replaceAll() is implemented.

@Paramecium0 Paramecium0 changed the title issue 1514 fixed implement methon replaceAll, instead of hiding non supported operations Apr 25, 2021
@Paramecium0 Paramecium0 changed the title implement methon replaceAll, instead of hiding non supported operations implement method replaceAll, instead of hiding non supported operations May 21, 2021
@jhy
Copy link
Owner

jhy commented Oct 24, 2023

Thanks - I implemented similarly and the other surrounding methods in #2017

@jhy jhy closed this Oct 24, 2023
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.

2 participants