Net creation #2

Merged
Berack96 merged 21 commits from net-creation into main 2025-03-16 18:02:38 +01:00
Showing only changes of commit 64e135810a - Show all commits

View File

@@ -1,6 +1,5 @@
package net.berack.upo.valpre.sim; package net.berack.upo.valpre.sim;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.PriorityQueue; import java.util.PriorityQueue;
@@ -151,7 +150,7 @@ public final class Simulation {
* @return a list of future events. * @return a list of future events.
*/ */
public List<Event> getFutureEventList() { public List<Event> getFutureEventList() {
return new ArrayList<>(this.fel); return List.copyOf(this.fel);
} }
/** /**