Search in sources :

Example 6 with MutableDoubleList

use of org.eclipse.collections.api.list.primitive.MutableDoubleList in project eclipse-collections by eclipse.

the class AbstractListTestCase method collectDouble.

@Override
public void collectDouble() {
    super.collectDouble();
    MutableDoubleList result = this.newWith(1, 2, 3, 4).collectDouble(PrimitiveFunctions.unboxIntegerToDouble());
    Assert.assertEquals(DoubleLists.mutable.of(1.0d, 2.0d, 3.0d, 4.0d), result);
}
Also used : MutableDoubleList(org.eclipse.collections.api.list.primitive.MutableDoubleList)

Aggregations

MutableDoubleList (org.eclipse.collections.api.list.primitive.MutableDoubleList)6 Test (org.junit.Test)5 DoubleArrayList (org.eclipse.collections.impl.list.mutable.primitive.DoubleArrayList)3 ArrayList (java.util.ArrayList)2 BooleanArrayList (org.eclipse.collections.impl.list.mutable.primitive.BooleanArrayList)2 ByteArrayList (org.eclipse.collections.impl.list.mutable.primitive.ByteArrayList)2 CharArrayList (org.eclipse.collections.impl.list.mutable.primitive.CharArrayList)2 FloatArrayList (org.eclipse.collections.impl.list.mutable.primitive.FloatArrayList)2 IntArrayList (org.eclipse.collections.impl.list.mutable.primitive.IntArrayList)2 LongArrayList (org.eclipse.collections.impl.list.mutable.primitive.LongArrayList)2 ShortArrayList (org.eclipse.collections.impl.list.mutable.primitive.ShortArrayList)2