carrotsearch/hppc

No addAll in IntSet nor IntCollection

Closed this issue · 2 comments

kno10 commented

... but both implementations of IntSet (did not check IntCollection) have addAll().

Likely also applies to other collections.

Indeed, I see it now. I'll correct the interface, thanks for the tip.

addAll(KTypeContainer<? extends KType> container) is trivial. addAll(KType...) is not because it's a type-unsafe vararg and SafeArgs can't be applied at the interface level (it only applies to final or static methods). After some deliberation I've added just the first version to the interface. I'm not sure what to do about the latter.