]> git.mxchange.org Git - jphone-core.git/commitdiff
Explicitly called default constructor (didn't help) + improved documentation
authorRoland Haeder <roland@mxchange.org>
Sun, 6 Mar 2016 17:28:20 +0000 (18:28 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 6 Mar 2016 17:28:20 +0000 (18:28 +0100)
src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java
src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java
src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java
src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java

index 5ef17004a4961337e60b02953b5384cb5927212b..d4a191e49bad6745069ee192b3ff40cf3b7cd643 100644 (file)
@@ -79,13 +79,17 @@ public class CellphoneNumber implements DialableCellphoneNumber, Comparable<Dial
        private Long phoneNumber;
 
        /**
-        * Constructor with cellphone carrier and number
+        * Constructor with cellphone provider and number
         * <p>
-        * @param cellphoneProvider Cellphone carrier instance
+        * @param cellphoneProvider Cellphone provider instance
         * @param cellphoneNumber   Cellphone number
         * @param phoneEntryCreated When this entry has been created
         */
        public CellphoneNumber (final SmsProvider cellphoneProvider, final Long cellphoneNumber, final Calendar phoneEntryCreated) {
+               // Call default constructor
+               this();
+
+               // Set all values
                this.cellphoneProvider = cellphoneProvider;
                this.phoneNumber = cellphoneNumber;
                this.phoneEntryCreated = phoneEntryCreated;
index f7fc667e1b55b928ddf99584081603453a42e84c..9fd4b39d68b2a423bd7637b33fa770afeedc8b0e 100644 (file)
@@ -85,14 +85,18 @@ public class FaxNumber implements DialableFaxNumber, Comparable<DialableFaxNumbe
        private Long phoneNumber;
 
        /**
-        * Contructor with country, area code and number
+        * Constructor with country, area code and number
         * <p>
-        * @param faxCountry Country instance
-        * @param faxAreaCode Area code (without leading zeros)
-        * @param faxNumber Fax number (without area code and leading zero)
+        * @param faxCountry        Country instance
+        * @param faxAreaCode       Area code (without leading zeros)
+        * @param faxNumber         Fax number (without area code and leading zero)
         * @param phoneEntryCreated When this entry has been created
         */
        public FaxNumber (final Country faxCountry, final Integer faxAreaCode, final Long faxNumber, final Calendar phoneEntryCreated) {
+               // Call default constructor
+               this();
+
+               // Set all values
                this.faxCountry = faxCountry;
                this.faxAreaCode = faxAreaCode;
                this.phoneNumber = faxNumber;
index 7196401c0476e7e8c1e53a93245f893e264b758e..d9f7343d1938a2352a982a913c3ca6b2d53bb9cd 100644 (file)
@@ -85,14 +85,18 @@ public class LandLineNumber implements DialableLandLineNumber, Comparable<Dialab
        private Long phoneNumber;
 
        /**
-        * Counstructor with country instance, area code and number
+        * Constructor with country instance, area code and number
         * <p>
-        * @param phoneCountry Country instance
-        * @param phoneAreaCode Phone area code
-        * @param phoneNumber Phone number
+        * @param phoneCountry      Country instance
+        * @param phoneAreaCode     Phone area code
+        * @param phoneNumber       Phone number
         * @param phoneEntryCreated When this entry has been created
         */
        public LandLineNumber (final Country phoneCountry, final Integer phoneAreaCode, final Long phoneNumber, final Calendar phoneEntryCreated) {
+               // Call default constructor
+               this();
+
+               // Set all values
                this.phoneCountry = phoneCountry;
                this.phoneAreaCode = phoneAreaCode;
                this.phoneNumber = phoneNumber;
index 3395af420b0b190cea27424d1cfdcf4159d00836..67039896c90d2ccf3bef955bc5c9689fd1e465b7 100644 (file)
@@ -92,12 +92,16 @@ public class CellphoneProvider implements SmsProvider, Comparable<SmsProvider> {
        /**
         * Constructor with all required data
         * <p>
-        * @param providerDialPrefix Dial prefix
-        * @param providerName Name
-        * @param providerCountry Country
+        * @param providerDialPrefix   Dial prefix
+        * @param providerName         Name
+        * @param providerCountry      Country
         * @param providerEntryCreated When this entry has been created
         */
        public CellphoneProvider (final Long providerDialPrefix, final String providerName, final Country providerCountry, final Calendar providerEntryCreated) {
+               // Call default constructor
+               this();
+
+               // Set all values
                this.providerDialPrefix = providerDialPrefix;
                this.providerName = providerName;
                this.providerCountry = providerCountry;