1 | package fr.sii.ogham.testing.sms.simulator.bean; | |
2 | ||
3 | /** | |
4 | * This enum is defined Numbering Plan Indicator. | |
5 | * | |
6 | * @author Aurélien Baudet | |
7 | */ | |
8 | public enum NumberingPlanIndicator { | |
9 | UNKNOWN((byte) 0x00), | |
10 | ISDN((byte) 0x01), | |
11 | DATA((byte) 0x03), | |
12 | TELEX((byte) 0x04), | |
13 | LAND_MOBILE((byte) 0x06), | |
14 | NATIONAL((byte) 0x08), | |
15 | PRIVATE((byte) 0x09), | |
16 | ERMES((byte) 0x0a), | |
17 | INTERNET((byte) 0x0e), | |
18 | WAP((byte) 0x12); | |
19 | | |
20 | private final byte value; | |
21 | ||
22 | NumberingPlanIndicator(byte value) { | |
23 | this.value = value; | |
24 | } | |
25 | ||
26 | /** | |
27 | * Return the value of NPI. | |
28 | * | |
29 | * @return the value of NPI. | |
30 | */ | |
31 | public byte value() { | |
32 |
3
1. value : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/NumberingPlanIndicator::value → NO_COVERAGE 2. value : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/NumberingPlanIndicator::value → KILLED 3. value : replaced byte return with 0 for fr/sii/ogham/testing/sms/simulator/bean/NumberingPlanIndicator::value → KILLED |
return value; |
33 | } | |
34 | ||
35 | /** | |
36 | * Get the associated {@link NumberingPlanIndicator} by it's value. | |
37 | * | |
38 | * @param value | |
39 | * is the value. | |
40 | * @return the associated enum const for specified value. | |
41 | * @throws IllegalArgumentException | |
42 | * if there is no enum const associated with specified | |
43 | * {@code value}. | |
44 | */ | |
45 | public static NumberingPlanIndicator valueOf(byte value) { | |
46 | for (NumberingPlanIndicator val : values()) { | |
47 |
4
1. valueOf : negated conditional → NO_COVERAGE 2. valueOf : negated conditional → KILLED 3. valueOf : negated conditional → KILLED 4. valueOf : negated conditional → KILLED |
if (val.value == value) { |
48 |
4
1. valueOf : replaced return value with null for fr/sii/ogham/testing/sms/simulator/bean/NumberingPlanIndicator::valueOf → NO_COVERAGE 2. valueOf : replaced return value with null for fr/sii/ogham/testing/sms/simulator/bean/NumberingPlanIndicator::valueOf → KILLED 3. valueOf : replaced return value with null for fr/sii/ogham/testing/sms/simulator/bean/NumberingPlanIndicator::valueOf → KILLED 4. valueOf : replaced return value with null for fr/sii/ogham/testing/sms/simulator/bean/NumberingPlanIndicator::valueOf → KILLED |
return val; |
49 | } | |
50 | } | |
51 | throw new IllegalArgumentException("No enum const NumberingPlanIndicator with value " + value); | |
52 | } | |
53 | } | |
Mutations | ||
32 |
1.1 2.2 3.3 |
|
47 |
1.1 2.2 3.3 4.4 |
|
48 |
1.1 2.2 3.3 4.4 |