1 | package fr.sii.ogham.core.fluent; | |
2 | ||
3 | /** | |
4 | * Base implementation that handles the parent and the {@link #and()} method. | |
5 | * | |
6 | * @author Aurélien Baudet | |
7 | * | |
8 | * @param <P> | |
9 | * the type of the parent (when calling {@link #and()} method) | |
10 | */ | |
11 | public abstract class AbstractParent<P> implements Parent<P> { | |
12 | /** | |
13 | * The parent instance | |
14 | */ | |
15 | protected final P parent; | |
16 | ||
17 | /** | |
18 | * Initialize the parent instance | |
19 | * | |
20 | * @param parent | |
21 | * the parent | |
22 | */ | |
23 | public AbstractParent(P parent) { | |
24 | super(); | |
25 | this.parent = parent; | |
26 | } | |
27 | ||
28 | @Override | |
29 | public P and() { | |
30 |
11
1. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → NO_COVERAGE 2. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 3. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 4. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 5. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 6. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 7. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 8. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 9. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 10. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED 11. and : replaced return value with null for fr/sii/ogham/core/fluent/AbstractParent::and → KILLED |
return parent; |
31 | } | |
32 | ||
33 | } | |
Mutations | ||
30 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 10.10 11.11 |