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