1 | package fr.sii.ogham.core.builder.template; | |
2 | ||
3 | import fr.sii.ogham.core.message.content.Variant; | |
4 | ||
5 | /** | |
6 | * Simple container class that is shared by builders that implement | |
7 | * {@link VariantBuilder}. | |
8 | * | |
9 | * @author Aurélien Baudet | |
10 | * | |
11 | */ | |
12 | public class VariantWithExt { | |
13 | private final Variant variant; | |
14 | private final String extension; | |
15 | ||
16 | /** | |
17 | * Creates a pair of variant and extension. | |
18 | * | |
19 | * @param variant | |
20 | * the variant | |
21 | * @param extension | |
22 | * the assocaited extension | |
23 | */ | |
24 | public VariantWithExt(Variant variant, String extension) { | |
25 | super(); | |
26 | this.variant = variant; | |
27 | this.extension = extension; | |
28 | } | |
29 | ||
30 | /** | |
31 | * Get the variant | |
32 | * | |
33 | * @return teh variant | |
34 | */ | |
35 | public Variant getVariant() { | |
36 |
3
1. getVariant : replaced return value with null for fr/sii/ogham/core/builder/template/VariantWithExt::getVariant → NO_COVERAGE 2. getVariant : replaced return value with null for fr/sii/ogham/core/builder/template/VariantWithExt::getVariant → SURVIVED 3. getVariant : replaced return value with null for fr/sii/ogham/core/builder/template/VariantWithExt::getVariant → KILLED |
return variant; |
37 | } | |
38 | ||
39 | /** | |
40 | * Get the extension | |
41 | * | |
42 | * @return the extension | |
43 | */ | |
44 | public String getExtension() { | |
45 |
3
1. getExtension : replaced return value with "" for fr/sii/ogham/core/builder/template/VariantWithExt::getExtension → SURVIVED 2. getExtension : replaced return value with "" for fr/sii/ogham/core/builder/template/VariantWithExt::getExtension → NO_COVERAGE 3. getExtension : replaced return value with "" for fr/sii/ogham/core/builder/template/VariantWithExt::getExtension → KILLED |
return extension; |
46 | } | |
47 | } | |
Mutations | ||
36 |
1.1 2.2 3.3 |
|
45 |
1.1 2.2 3.3 |