*/
public static <T> MutableShortCollection collectShort(
Iterator<T> iterator,
ShortFunction<? super T> shortFunction)
{
MutableShortCollection result = new ShortArrayList();
while (iterator.hasNext())
{
result.add(shortFunction.shortValueOf(iterator.next()));
}
return result;
}