@ Override public Iterator < Action > iterator ( ) { Set < Action > sorted = new TreeSet <> ( startFirstComparator ) ; sorted . addAll ( actions ) ; return sorted . iterator ( ) ; }
Iterate over the actions . The action are automatically sorted increasingly by their starting moment .