use of org.eclipse.collections.api.set.primitive.MutableCharSet in project eclipse-collections by eclipse.
the class AbstractMutableSet method collectChar.
@Override
public MutableCharSet collectChar(CharFunction<? super T> charFunction) {
MutableCharSet result = new CharHashSet(this.size());
this.forEach(new CollectCharProcedure<>(charFunction, result));
return result;
}
use of org.eclipse.collections.api.set.primitive.MutableCharSet in project eclipse-collections by eclipse.
the class AbstractImmutableSet method collectChar.
@Override
public ImmutableCharSet collectChar(CharFunction<? super T> charFunction) {
MutableCharSet result = new CharHashSet(this.size());
this.forEach(new CollectCharProcedure<>(charFunction, result));
return result.toImmutable();
}
Aggregations