1 | package fr.sii.ogham.sms.message.addressing.translator; | |
2 | ||
3 | import fr.sii.ogham.sms.message.PhoneNumber; | |
4 | import fr.sii.ogham.sms.message.addressing.NumberingPlanIndicator; | |
5 | import fr.sii.ogham.sms.message.addressing.TypeOfNumber; | |
6 | ||
7 | /** | |
8 | * Loose International phone number handler. If the sender starts with a "+", | |
9 | * TON is set to 1, and NPI is set to 1. | |
10 | * | |
11 | * @author cdejonghe | |
12 | * | |
13 | */ | |
14 | public class InternationalNumberFormatHandler extends AbstractFixedPhoneNumberHandler { | |
15 | ||
16 | private static final String INTERNATION_NUMBER_PREFIX = "+"; | |
17 | ||
18 | public InternationalNumberFormatHandler() { | |
19 | super(TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.ISDN_TELEPHONE); | |
20 | } | |
21 | ||
22 | @Override | |
23 | public boolean supports(PhoneNumber phoneNumber) { | |
24 |
16
1. supports : replaced boolean return with true for fr/sii/ogham/sms/message/addressing/translator/InternationalNumberFormatHandler::supports → SURVIVED 2. supports : replaced boolean return with true for fr/sii/ogham/sms/message/addressing/translator/InternationalNumberFormatHandler::supports → NO_COVERAGE 3. supports : negated conditional → SURVIVED 4. supports : negated conditional → NO_COVERAGE 5. supports : negated conditional → SURVIVED 6. supports : negated conditional → NO_COVERAGE 7. supports : negated conditional → SURVIVED 8. supports : negated conditional → NO_COVERAGE 9. supports : replaced boolean return with true for fr/sii/ogham/sms/message/addressing/translator/InternationalNumberFormatHandler::supports → TIMED_OUT 10. supports : negated conditional → TIMED_OUT 11. supports : negated conditional → TIMED_OUT 12. supports : negated conditional → TIMED_OUT 13. supports : replaced boolean return with true for fr/sii/ogham/sms/message/addressing/translator/InternationalNumberFormatHandler::supports → KILLED 14. supports : negated conditional → KILLED 15. supports : negated conditional → KILLED 16. supports : negated conditional → KILLED |
return phoneNumber != null && phoneNumber.getNumber() != null && phoneNumber.getNumber().startsWith(INTERNATION_NUMBER_PREFIX); |
25 | } | |
26 | } | |
Mutations | ||
24 |
1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9 10.10 11.11 12.12 13.13 14.14 15.15 16.16 |