From 727f1eaa76befb29025efd88abf4124c6882ddee Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 7 Aug 2015 15:15:07 +0200 Subject: [PATCH] =?utf8?q?It=20has=20to=20be=20Long,=20with=20long=20you?= =?utf8?q?=20get=20zeros=20in=20forms=20Signed-off-by:Roland=20H=C3=A4der?= =?utf8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/org/mxchange/jcore/contact/BaseContact.java | 12 ++++++------ src/org/mxchange/jcore/contact/Contact.java | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/org/mxchange/jcore/contact/BaseContact.java b/src/org/mxchange/jcore/contact/BaseContact.java index b817a59..75f51fd 100644 --- a/src/org/mxchange/jcore/contact/BaseContact.java +++ b/src/org/mxchange/jcore/contact/BaseContact.java @@ -85,7 +85,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { /** * House number */ - private long houseNumber; + private Long houseNumber; /** * Flag whether this contact is user's own data @@ -110,7 +110,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { /** * ZIP code */ - private long zipCode; + private Long zipCode; /** * No instances can be created of this class @@ -386,7 +386,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @return the houseNumber */ @Override - public long getHouseNumber () { + public Long getHouseNumber () { return this.houseNumber; } @@ -396,7 +396,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @param houseNumber the houseNumber to set */ @Override - public final void setHouseNumber (final long houseNumber) { + public final void setHouseNumber (final Long houseNumber) { this.houseNumber = houseNumber; } @@ -523,7 +523,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @return the zipCode */ @Override - public final long getZipCode () { + public final Long getZipCode () { return this.zipCode; } @@ -533,7 +533,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact { * @param zipCode the zipCode to set */ @Override - public final void setZipCode (final long zipCode) { + public final void setZipCode (final Long zipCode) { this.zipCode = zipCode; } diff --git a/src/org/mxchange/jcore/contact/Contact.java b/src/org/mxchange/jcore/contact/Contact.java index f0f3a68..85896f5 100644 --- a/src/org/mxchange/jcore/contact/Contact.java +++ b/src/org/mxchange/jcore/contact/Contact.java @@ -116,28 +116,28 @@ public interface Contact extends FrameworkInterface { * * @return the houseNumber */ - public long getHouseNumber (); + public Long getHouseNumber (); /** * House number * * @param houseNumber the houseNumber to set */ - public void setHouseNumber (final long houseNumber); + public void setHouseNumber (final Long houseNumber); /** * ZIP code * * @return the zipCode */ - public long getZipCode (); + public Long getZipCode (); /** * ZIP code * * @param zipCode the zipCode to set */ - public void setZipCode (final long zipCode); + public void setZipCode (final Long zipCode); /** * City -- 2.39.5