public ImmutableSchedule(TrainOrdersModel[] orders, int gotoStation, boolean hasPriorityOrders) { this.orders = (TrainOrdersModel[])orders.clone(); this.nextScheduledOrder = gotoStation; this.hasPriorityOrders = hasPriorityOrders;
public ImmutableSchedule(TrainOrdersModel[] orders) { this.orders = new TrainOrdersModel[orders.length]; for (int i = 0; i < orders.length; i++) { this.orders[i] = orders[i]; }
    public ImmutableSchedule(TrainOrdersModel[] orders, int gotoStation,        boolean hasPriorityOrders) {        this.orders = (TrainOrdersModel[])orders.clone();        this.nextScheduledOrder = gotoStation;        this.hasPriorityOrders = hasPriorityOrders;    }