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