@Override
public <R extends MutableCharCollection> R collectChar(final CharFunction<? super T> charFunction, final R target)
{
if (target instanceof MutableCharBag)
{
final MutableCharBag targetBag = (MutableCharBag) target;
this.forEachWithOccurrences(new ObjectIntProcedure<T>()
{
public void value(T each, int occurrences)
{
targetBag.addOccurrences(charFunction.charValueOf(each), occurrences);
}
});
}
else
{