Example usage for com.google.common.collect ImmutableList parallelStream

List of usage examples for com.google.common.collect ImmutableList parallelStream

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableList parallelStream.

Prototype

default Stream<E> parallelStream() 

Source Link

Document

Returns a possibly parallel Stream with this collection as its source.

Usage

From source file:com.google.devtools.build.importdeps.ImportDepsChecker.java

private static ImmutableList<String> extractLabels(ImmutableList<Path> jars) {
    return jars.parallelStream().map(ImportDepsChecker::extractLabel).filter(Objects::nonNull).distinct()
            .sorted().collect(ImmutableList.toImmutableList());
}