@Override
public <R extends MutableFloatCollection> R collectFloat(final FloatFunction<? super T> floatFunction, final R target)
{
if (target instanceof MutableFloatBag)
{
final MutableFloatBag targetBag = (MutableFloatBag) target;
this.forEachWithOccurrences(new ObjectIntProcedure<T>()
{
public void value(T each, int occurrences)
{
targetBag.addOccurrences(floatFunction.floatValueOf(each), occurrences);
}
});
}
else
{