Package groovyx.gpars.pa

Examples of groovyx.gpars.pa.PAWrapper


     * Creates a PAWrapper around a ParallelArray wrapping the elements of the original collection.
     * This allows further parallel processing operations on the collection to chain and so effectively leverage the underlying
     * ParallelArray implementation.
     */
    public static <T> PAWrapper<T> getParallel(final Collection<T> collection) {
        return new PAWrapper(GParsPoolUtilHelper.createPAFromCollection(collection, retrievePool()));
    }
View Full Code Here


     * Creates a PAWrapper around a ParallelArray wrapping the elements of the original collection.
     * This allows further parallel processing operations on the collection to chain and so effectively leverage the underlying
     * ParallelArray implementation.
     */
    public static PAWrapper getParallel(final Object collection) {
        return new PAWrapper(GParsPoolUtilHelper.createPA(collection, retrievePool()));
    }
View Full Code Here

TOP

Related Classes of groovyx.gpars.pa.PAWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.