public ImmutableShortCollection collectShort(ShortFunction<? super V> shortFunction)
{
ShortArrayList result = new ShortArrayList(this.size());
this.forEach(new CollectShortProcedure<V>(shortFunction, result));
return result.toImmutable();
}
public <R> ImmutableCollection<R> collectIf(Predicate<? super V> predicate, Function<? super V, ? extends R> function)
{
return this.collectIf(predicate, function, FastList.<R>newList(this.size())).toImmutable();