import java.util.ArrayList; public class ActionList { private ArrayList actions; public ActionList() { actions = new ArrayList<>(); actions.add(new Action()); } public ActionList(long[] leftDeltaArray, long[] rightDeltaArray, long[] leftDelaiArray, long[] rightDelaiArray) { if(leftDelaiArray.length != rightDelaiArray.length || leftDelaiArray.length != leftDelaiArray.length || leftDelaiArray.length != rightDelaiArray.length) throw new InvalidActionListArrays(); actions = new ArrayList<>(); for(int i=0; i