]> git.mxchange.org Git - jcontacts-core.git/commitdiff
changed ZIP code to Integer (enougth)
authorRoland Haeder <roland@mxchange.org>
Fri, 2 Oct 2015 10:30:14 +0000 (12:30 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 2 Oct 2015 10:30:14 +0000 (12:30 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcontacts/contact/Contact.java
src/org/mxchange/jcontacts/contact/UserContact.java

index 6c1f583c22594b4fbc8e228afdc8caf0499f0532..89a269cd3761abcc649290f1c8b83e2e57f27bc2 100644 (file)
@@ -285,14 +285,14 @@ public interface Contact extends Serializable {
         * <p>
         * @return the zipCode
         */
-       public Long getZipCode ();
+       public Integer getZipCode ();
 
        /**
         * ZIP code
         * <p>
         * @param zipCode the zipCode to set
         */
-       public void setZipCode (final Long zipCode);
+       public void setZipCode (final Integer zipCode);
 
        /**
         * Checks whether the contact is user's own data
index 47554565789d91bf89924f6fbe5d043b7e9e625f..0225e987a854f36cdb0e5b83ab112b14cc36f74c 100644 (file)
@@ -172,7 +172,7 @@ public class UserContact implements Contact, Comparable<Contact> {
         * ZIP code
         */
        @Column (name = "zip_code", nullable = false, length = 6)
-       private Long zipCode;
+       private Integer zipCode;
 
        /**
         * Constructor for gender and names
@@ -448,12 +448,12 @@ public class UserContact implements Contact, Comparable<Contact> {
        }
 
        @Override
-       public Long getZipCode () {
+       public Integer getZipCode () {
                return this.zipCode;
        }
 
        @Override
-       public void setZipCode (final Long zipCode) {
+       public void setZipCode (final Integer zipCode) {
                this.zipCode = zipCode;
        }