eclipse-collections
eclipse-collections copied to clipboard
Ability to use UnifiedSetWithHashingStrategy in a synchronized context
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?