1 | package net.bmahe.genetics4j.gpu.spec.fitness.multistage; | |
2 | ||
3 | import java.util.List; | |
4 | import java.util.Map; | |
5 | ||
6 | import org.apache.commons.lang3.Validate; | |
7 | import org.immutables.value.Value; | |
8 | ||
9 | import net.bmahe.genetics4j.gpu.spec.fitness.cldata.StaticDataLoader; | |
10 | ||
11 | @Value.Immutable | |
12 | public interface MultiStageDescriptor { | |
13 | ||
14 | Map<String, StaticDataLoader> staticDataLoaders(); | |
15 | ||
16 | List<StageDescriptor> stageDescriptors(); | |
17 | ||
18 | @Value.Check | |
19 | default void check() { | |
20 | Validate.notNull(stageDescriptors()); | |
21 | Validate.isTrue(stageDescriptors().size() > 0); | |
22 | } | |
23 | ||
24 | static ImmutableMultiStageDescriptor.Builder builder() { | |
25 |
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(); |
26 | } | |
27 | } | |
Mutations | ||
25 |
1.1 2.2 |