From: Roland Haeder Date: Fri, 25 Sep 2015 10:35:42 +0000 (+0200) Subject: There are no house numbers larger than 1,000 ... ;-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f524371e436231a5ac3adbdf7d2c59ecc2e757f;p=jcore.git There are no house numbers larger than 1,000 ... ;-) Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/model/contact/Contact.java b/src/org/mxchange/jcore/model/contact/Contact.java index 18b807b..c4a4fc7 100644 --- a/src/org/mxchange/jcore/model/contact/Contact.java +++ b/src/org/mxchange/jcore/model/contact/Contact.java @@ -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 diff --git a/src/org/mxchange/jcore/model/contact/UserContact.java b/src/org/mxchange/jcore/model/contact/UserContact.java index 1c88cce..fc83b27 100644 --- a/src/org/mxchange/jcore/model/contact/UserContact.java +++ b/src/org/mxchange/jcore/model/contact/UserContact.java @@ -139,7 +139,7 @@ public class UserContact implements Contact, Comparable { * 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 { } /** - * 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 { } @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; }