]> git.mxchange.org Git - jcore.git/commitdiff
There are no house numbers larger than 1,000 ... ;-)
authorRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 10:35:42 +0000 (12:35 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 10:35:42 +0000 (12:35 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/model/contact/Contact.java
src/org/mxchange/jcore/model/contact/UserContact.java

index 18b807bcbc558c8c359ae4bab37875dd393a399d..c4a4fc7d6801a3f1c2a739732af58fbd14a587bd 100644 (file)
@@ -222,14 +222,14 @@ public interface Contact extends Serializable {
         *
         * @return the houseNumber
         */
-       public Long getHouseNumber ();
+       public Short getHouseNumber ();
 
        /**
         * House number
         *
         * @param houseNumber the houseNumber to set
         */
-       public void setHouseNumber (final Long houseNumber);
+       public void setHouseNumber (final Short houseNumber);
 
        /**
         * Setter for own contact
index 1c88cce61cf3bd45be3bf2acf778bd5a093ab79f..fc83b277b8357af45770c5746cdf200d73d3a5e3 100644 (file)
@@ -139,7 +139,7 @@ public class UserContact implements Contact, Comparable<Contact> {
         * House number
         */
        @Column (name = "house_number", length = 5, nullable = false)
-       private Long houseNumber;
+       private Short houseNumber;
 
        /**
         * Flag whether this contact is user's own data
@@ -188,10 +188,9 @@ public class UserContact implements Contact, Comparable<Contact> {
        }
 
        /**
-        * No instances should be created of this class. Better extend this class
-        * and provide proper constructors.
+        * Default constructor
         */
-       protected UserContact () {
+       public UserContact () {
        }
 
        /**
@@ -402,12 +401,12 @@ public class UserContact implements Contact, Comparable<Contact> {
        }
 
        @Override
-       public Long getHouseNumber () {
+       public Short getHouseNumber () {
                return this.houseNumber;
        }
 
        @Override
-       public void setHouseNumber (final Long houseNumber) {
+       public void setHouseNumber (final Short houseNumber) {
                this.houseNumber = houseNumber;
        }