On regular java collections it's possible to remove an element given an input Predicate
.
persons.removeIf(person -> person.isMale());
In eclipse collections it seems possible to do this as long as the collection being used extends Iterable<T>
.
For primitive collections that extend PrimitiveIterable
, there doesn't seem to be a method provided to do the same. Is it not supported? If not, why?
EDIT: I should add that I'm looking for a method that removes an item in-place without creating a new set, as reject does.