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

Optimize containsAll on RichIterable

Open donraab opened this issue 3 years ago • 0 comments

There are now optimized versions of containsAny and containsNone on RichIterable. Similar optimizations could be implemented for containsAll, as they have been for primitive collections.

It is more work for containsAll, as this is an abstract method on Collection and List, so needs to be overridden in multiple places in addition to defining a default method on RichIterable. The containsAny and containsNone implementations were able to be done primarily through the default method implementations on RichIterable.

donraab avatar May 02 '22 14:05 donraab