@Valid public class ProductCode extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ProductCode.Builder
Class implements builder to create a new instance of class
ProductCode. |
| Modifier | Constructor and Description |
|---|---|
protected |
ProductCode()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
ProductCode(ProductCode.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static ProductCode.Builder |
builder()
Method returns a new builder.
|
static ProductCode.Builder |
builder(int pCode)
Method creates a new builder and initializes it with the passed attributes.
|
static ProductCode.Builder |
builder(ProductCode pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
boolean |
equals(Object pOtherObject) |
int |
getCode()
Method returns attribute
code. |
int |
hashCode() |
void |
setCode(int pCode)
Method sets attribute
code. |
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 ProductCode()
protected ProductCode(ProductCode.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static ProductCode.Builder builder()
ProductCode.Builder New builder that can be used to create new ProductCode objects.public static ProductCode.Builder builder(ProductCode pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.ProductCode.Builder New builder that can be used to create new ProductCode objects. The method never returns
null.public static ProductCode.Builder builder(int pCode)
public int getCode()
code.code is set.public void setCode(int pCode)
code.pCode - Value to which code should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.