use of org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection in project eclipse-collections by eclipse.
the class AbstractImmutableCollectionTestCase method collectDouble.
@Test
public void collectDouble() {
ImmutableCollection<Integer> integers = this.classUnderTest();
ImmutableDoubleCollection immutableCollection = integers.collectDouble(PrimitiveFunctions.unboxIntegerToDouble());
Verify.assertSize(integers.size(), immutableCollection);
Assert.assertEquals(integers, immutableCollection.collect(doubleParameter -> Integer.valueOf((int) doubleParameter)));
}
Aggregations