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

org.jsoftware.config.LastApplyStrategy Maven / Gradle / Ivy

package org.jsoftware.config;



import java.sql.Connection;
import java.util.Collections;
import java.util.List;

/**
 * Apply only new patches.
 * @author szalik
 */
public class LastApplyStrategy implements ApplyStrategy {

	@SuppressWarnings("unchecked")
	public List filter(Connection con, List patches) {
		int last = 0;
		for(int i=0; i) ((last >= patches.size()) ? Collections.emptyList() : patches.subList(last+1, patches.size()));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy