public static final < A > Collection < A > toConcurrentLazyCollection ( final Stream < A > stream ) { return toConcurrentLazyCollection ( stream . iterator ( ) ) ; }
Lazily constructs a Collection from specified Stream . Collections iterator may be safely used concurrently by multiple threads .