throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".groupByUniqueKey() not implemented yet");
}
public MutableByteList collectByte(final ByteFunction<? super T> byteFunction)
{
final MutableByteList result = new ByteArrayList();
this.forEachWithOccurrences(new ObjectIntProcedure<T>()
{
public void value(T each, int occurrences)
{
byte element = byteFunction.byteValueOf(each);
for (int i = 0; i < occurrences; i++)
{
result.add(element);
}
}
});
return result;
}