Search in sources :

Example 1 with ImmutableIntCollection

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));
}
Also used : ImmutableIntCollection(org.eclipse.collections.api.collection.primitive.ImmutableIntCollection) Test(org.junit.Test)

Aggregations

ImmutableIntCollection (org.eclipse.collections.api.collection.primitive.ImmutableIntCollection)1 Test (org.junit.Test)1