use of org.eclipse.collections.api.set.primitive.MutableShortSet in project eclipse-collections by eclipse.
the class AbstractImmutableSet method collectShort.
@Override
public ImmutableShortSet collectShort(ShortFunction<? super T> shortFunction) {
MutableShortSet result = new ShortHashSet(this.size());
this.forEach(new CollectShortProcedure<>(shortFunction, result));
return result.toImmutable();
}
use of org.eclipse.collections.api.set.primitive.MutableShortSet in project eclipse-collections by eclipse.
the class AbstractMutableSet method collectShort.
@Override
public MutableShortSet collectShort(ShortFunction<? super T> shortFunction) {
MutableShortSet result = new ShortHashSet(this.size());
this.forEach(new CollectShortProcedure<>(shortFunction, result));
return result;
}
Aggregations