Search in sources :

Example 1 with ImmutableCharCollection

use of org.eclipse.collections.api.collection.primitive.ImmutableCharCollection in project eclipse-collections by eclipse.

the class AbstractImmutableCollectionTestCase method collectChar.

@Test
public void collectChar() {
    ImmutableCollection<Integer> integers = this.classUnderTest();
    ImmutableCharCollection immutableCollection = integers.collectChar(PrimitiveFunctions.unboxIntegerToChar());
    Verify.assertSize(integers.size(), immutableCollection);
    Assert.assertEquals(integers, immutableCollection.collect(Integer::valueOf));
}
Also used : ImmutableCharCollection(org.eclipse.collections.api.collection.primitive.ImmutableCharCollection) Test(org.junit.Test)

Aggregations

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