eclipse-collections icon indicating copy to clipboard operation
eclipse-collections copied to clipboard

Ability to use UnifiedSetWithHashingStrategy in a synchronized context

Open lewimuchiri opened this issue 4 months ago • 0 comments

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?

lewimuchiri avatar Sep 30 '24 13:09 lewimuchiri