eclipse-collections
eclipse-collections copied to clipboard
Optimize containsAll on RichIterable
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.