use of org.eclipse.collections.impl.list.mutable.primitive.ShortArrayList in project eclipse-collections by eclipse.
the class TreeSortedSet method collectShort.
@Override
public MutableShortList collectShort(ShortFunction<? super T> shortFunction) {
ShortArrayList result = new ShortArrayList(this.size());
this.forEach(new CollectShortProcedure<>(shortFunction, result));
return result;
}
use of org.eclipse.collections.impl.list.mutable.primitive.ShortArrayList in project eclipse-collections by eclipse.
the class AbstractImmutableSortedSet method collectShort.
@Override
public ImmutableShortList collectShort(ShortFunction<? super T> shortFunction) {
ShortArrayList result = new ShortArrayList(this.size());
this.forEach(new CollectShortProcedure<>(shortFunction, result));
return result.toImmutable();
}
use of org.eclipse.collections.impl.list.mutable.primitive.ShortArrayList in project eclipse-collections by eclipse.
the class OrderedMapAdapter method collectShort.
@Override
public MutableShortList collectShort(ShortFunction<? super V> shortFunction) {
ShortArrayList result = new ShortArrayList(this.size());
this.forEach(new CollectShortProcedure<>(shortFunction, result));
return result;
}
use of org.eclipse.collections.impl.list.mutable.primitive.ShortArrayList in project eclipse-collections by eclipse.
the class RandomAccessListAdapter method collectShort.
@Override
public MutableShortList collectShort(ShortFunction<? super T> shortFunction) {
ShortArrayList result = new ShortArrayList(this.size());
this.forEach(new CollectShortProcedure<>(shortFunction, result));
return result;
}
use of org.eclipse.collections.impl.list.mutable.primitive.ShortArrayList in project eclipse-collections by eclipse.
the class ArrayListAdapter method collectShort.
@Override
public MutableShortList collectShort(ShortFunction<? super T> shortFunction) {
ShortArrayList result = new ShortArrayList(this.size());
this.each(each -> result.add(shortFunction.shortValueOf(each)));
return result;
}
Aggregations