com.prezi.gradle.pride.internal.ProgressUtils Maven / Gradle / Ivy
package com.prezi.gradle.pride.internal;
import com.prezi.gradle.pride.Pride;
import java.io.IOException;
import java.util.Collection;
public class ProgressUtils {
public static void execute(Pride pride, Collection extends T> items, ProgressAction super T> action) throws IOException {
int index = 0;
for (T item : items) {
action.execute(pride, item, index, items.size());
index++;
}
}
}