<dependency>
<groupId>org.eclipse.collections</groupId>
<artifactId>eclipse-collections</artifactId>
<version>10.4.0</version>
</dependency>
import org.eclipse.collections.api.list.ImmutableList;
import org.eclipse.collections.impl.factory.Lists;
public class EclipseCollectionsExample {
public static void main(String[] args) {
ImmutableList<String> names = Lists.immutable.of("Alice", "Bob", "Charlie", "David");
ImmutableList<String> filteredNames = names.select(name -> name.length() > 3);
ImmutableList<String> upperCaseNames = filteredNames.collect(String::toUpperCase);
upperCaseNames.each(System.out::println);
}
}