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