| 1 | package net.bmahe.genetics4j.gpu.spec.fitness.multistage; | |
| 2 | ||
| 3 | import java.util.List; | |
| 4 | import java.util.Map; | |
| 5 | import java.util.Objects; | |
| 6 | ||
| 7 | import org.apache.commons.lang3.Validate; | |
| 8 | import org.immutables.value.Value; | |
| 9 | ||
| 10 | import net.bmahe.genetics4j.gpu.spec.fitness.cldata.StaticDataLoader; | |
| 11 | ||
| 12 | @Value.Immutable | |
| 13 | public interface MultiStageDescriptor { | |
| 14 | ||
| 15 | Map<String, StaticDataLoader> staticDataLoaders(); | |
| 16 | ||
| 17 | List<StageDescriptor> stageDescriptors(); | |
| 18 | ||
| 19 | @Value.Check | |
| 20 | default void check() { | |
| 21 | Objects.requireNonNull(stageDescriptors()); | |
| 22 | Validate.isTrue(stageDescriptors().isEmpty() == false, "At least one stage descriptor must be specified"); | |
| 23 | } | |
| 24 | ||
| 25 | static ImmutableMultiStageDescriptor.Builder builder() { | |
| 26 |
2
1. builder : replaced return value with null for net/bmahe/genetics4j/gpu/spec/fitness/multistage/MultiStageDescriptor::builder → NO_COVERAGE 2. builder : removed call to net/bmahe/genetics4j/gpu/spec/fitness/multistage/ImmutableMultiStageDescriptor::builder → NO_COVERAGE |
return ImmutableMultiStageDescriptor.builder(); |
| 27 | } | |
| 28 | } | |
Mutations | ||
| 26 |
1.1 2.2 |