@Valid public class CompositeID extends CompositeIDBase
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositeID.Builder
Class implements builder to create a new instance of class CompositeID.
|
CompositeIDBase.BuilderBase| Modifier | Constructor and Description |
|---|---|
protected |
CompositeID()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
CompositeID(CompositeIDBase.BuilderBase pBuilder)
Initialize object.
|
| Modifier and Type | Method and Description |
|---|---|
static CompositeID.Builder |
builder()
Method returns a new builder.
|
static CompositeID.Builder |
builder(CompositeID pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static CompositeID.Builder |
builder(long pPrimaryCode,
long pSecondaryCode)
Method creates a new builder and initializes it with the passed attributes.
|
static CompositeID |
deserialize(String pSerialized)
Method deserialized the passed String representation of this object into a new instance of this class.
|
String |
serialize()
Method serializes this object into its custom string representation.
|
getPrimaryCode, getSecondaryCode, setPrimaryCode, setSecondaryCode, toString, toStringBuilderprotected CompositeID()
protected CompositeID(CompositeIDBase.BuilderBase pBuilder)
public static CompositeID.Builder builder()
CompositeID.Builder New builder that can be used to create new CompositeID objects.public static CompositeID.Builder builder(CompositeID pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.CompositeID.Builder New builder that can be used to create new CompositeID objects. The method never returns
null.public static CompositeID.Builder builder(long pPrimaryCode, long pSecondaryCode)
public String serialize()
String Serialized String representation of this object. The method must not return null.public static CompositeID deserialize(String pSerialized)
pSerialized - Serialized representation that should be used to create a new instance. The parameter is never
null.CompositeID Instance of this class as it was deserialized from the passed string. The method must
not return null.Copyright © 2023. All rights reserved.