All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee.telekom.workflow.facade.util.SqlUtil Maven / Gradle / Ivy

Go to download

Telekom-workflow-engine core provides the runtime environment for workflow execution together with all the supporting services (clustering, persistence, error handling etc).

There is a newer version: 1.6.3
Show newest version
package ee.telekom.workflow.facade.util;

import java.util.ArrayList;
import java.util.List;

public class SqlUtil{

    public static List> partition( List all, int partitionSize ){
        List> partitions = new ArrayList<>();
        final int count = all.size();
        for( int i = 0; i < count; i += partitionSize ){
            partitions.add( new ArrayList<>( all.subList( i, Math.min( count, i + partitionSize ) ) ) );
        }
        return partitions;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy