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

Ability to use UnifiedSetWithHashingStrategy in a synchronized context #1712

Open
lewimuchiri opened this issue Sep 30, 2024 · 0 comments
Open

Comments

@lewimuchiri
Copy link

lewimuchiri commented Sep 30, 2024

UnifiedSetWithHashingStrategy has the addOrReplace() method which performs with O(1) complexity. When you call .asSynchronized() on a UnifiedSetWithHashingStrategy, you get a MutableSet which is the interface that does not have the addOrReplace() method.

Any way we can use the class UnifiedSetWithHashingStrategy in a synchronized context and hence still retain the get(), put() and addOrReplace() methods?

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

1 participant