use of org.eclipse.collections.api.set.primitive.MutableFloatSet in project eclipse-collections by eclipse.
the class AbstractImmutableSet method collectFloat.
@Override
public ImmutableFloatSet collectFloat(FloatFunction<? super T> floatFunction) {
MutableFloatSet result = new FloatHashSet(this.size());
this.forEach(new CollectFloatProcedure<>(floatFunction, result));
return result.toImmutable();
}
use of org.eclipse.collections.api.set.primitive.MutableFloatSet in project eclipse-collections by eclipse.
the class AbstractMutableSet method collectFloat.
@Override
public MutableFloatSet collectFloat(FloatFunction<? super T> floatFunction) {
MutableFloatSet result = new FloatHashSet(this.size());
this.forEach(new CollectFloatProcedure<>(floatFunction, result));
return result;
}
Aggregations