| 1 | package net.bmahe.genetics4j.gp.spec.mutation; | |
| 2 | ||
| 3 | import java.util.List; | |
| 4 | ||
| 5 | import org.immutables.value.Value; | |
| 6 | ||
| 7 | import net.bmahe.genetics4j.core.spec.mutation.MutationPolicy; | |
| 8 | ||
| 9 | @Value.Immutable | |
| 10 | public interface ProgramApplyRules extends MutationPolicy { | |
| 11 | ||
| 12 | @Value.Parameter | |
| 13 | List<Rule> rules(); | |
| 14 | ||
| 15 | public static ProgramApplyRules of(final List<Rule> rules) { | |
| 16 |
2
1. of : removed call to net/bmahe/genetics4j/gp/spec/mutation/ImmutableProgramApplyRules::of → KILLED 2. of : replaced return value with null for net/bmahe/genetics4j/gp/spec/mutation/ProgramApplyRules::of → KILLED |
return ImmutableProgramApplyRules.of(rules); |
| 17 | } | |
| 18 | } | |
Mutations | ||
| 16 |
1.1 2.2 |