@Valid public class PostalAddress extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PostalAddress.Builder
Class implements builder to create a new instance of class PostalAddress.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PostalAddress()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
PostalAddress(PostalAddress.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static PostalAddress.Builder |
builder()
Method returns a new builder.
|
static PostalAddress.Builder |
builder(PostalAddress pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static PostalAddress.Builder |
builder(String pStreet,
String pHouseNumber,
String pCity,
int pPostalCode)
Method creates a new builder and initializes it with the passed attributes.
|
String |
getCity()
Method returns the attribute "city".
|
String |
getHouseNumber()
Method returns the attribute "houseNumber".
|
int |
getPostalCode()
Method returns the attribute "postalCode".
|
String |
getStreet()
Method returns the attribute "street".
|
void |
setCity(String pCity)
Method sets the attribute "city".
|
void |
setHouseNumber(String pHouseNumber)
Method sets the attribute "houseNumber".
|
void |
setPostalCode(int pPostalCode)
Method sets the attribute "postalCode".
|
void |
setStreet(String pStreet)
Method sets the attribute "street".
|
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected PostalAddress()
protected PostalAddress(PostalAddress.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static PostalAddress.Builder builder()
PostalAddress.Builder New builder that can be used to create new PostalAddress objects.public static PostalAddress.Builder builder(PostalAddress pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.PostalAddress.Builder New builder that can be used to create new PostalAddress objects. The method never returns
null.public static PostalAddress.Builder builder(String pStreet, String pHouseNumber, String pCity, int pPostalCode)
public String getStreet()
public void setStreet(String pStreet)
pStreet - Value to which the attribute "street" should be set.public String getHouseNumber()
public void setHouseNumber(String pHouseNumber)
pHouseNumber - Value to which the attribute "houseNumber" should be set.public String getCity()
public void setCity(String pCity)
pCity - Value to which the attribute "city" should be set.public int getPostalCode()
public void setPostalCode(int pPostalCode)
pPostalCode - Value to which the attribute "postalCode" should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.