@Valid public class Company extends Partner
| Modifier and Type | Class and Description |
|---|---|
static class |
Company.Builder
Class implements builder to create a new instance of class Company.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Company()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
Company(Company.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static Company.Builder |
builder()
Method returns a new builder.
|
static Company.Builder |
builder(Company pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static Company.Builder |
builder(String pName)
Method creates a new builder and initializes it with the passed attributes.
|
String |
getName()
Method returns the attribute "name".
|
void |
setName(String pName)
Method sets the attribute "name".
|
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.
|
addToPostalAddresses, addToPostalAddresses, builder, clearPostalAddresses, getID, getPostalAddresses, getUnversionedID, removeFromPostalAddressesprotected Company()
protected Company(Company.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Company.Builder builder()
Company.Builder New builder that can be used to create new Company objects.public static Company.Builder builder(Company pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Company.Builder New builder that can be used to create new Company objects. The method never returns null.public static Company.Builder builder(String pName)
public String getName()
public void setName(String pName)
pName - Value to which the attribute "name" should be set.public StringBuilder toStringBuilder(String pIndent)
toStringBuilder in class PartnerStringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.