public MutableSchedule(ImmutableSchedule s) { nextScheduledOrder = s.getNextScheduledOrder(); hasPriorityOrders = s.hasPriorityOrders();  for (int i = 0; i < s.getNumOrders(); i++) { orders.add(s.getOrder(i)); }
public MutableSchedule() { orders = new ArrayList();
    public MutableSchedule(ImmutableSchedule s) {        nextScheduledOrder = s.getNextScheduledOrder();        hasPriorityOrders = s.hasPriorityOrders();        for (int i = 0; i < s.getNumOrders(); i++) {            orders.add(s.getOrder(i));        }    }