Class CompositeID
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.CompositeIDBase
-
- com.anaptecs.jeaf.junit.openapi.base.CompositeID
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class CompositeID extends CompositeIDBase
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompositeID.BuilderClass implements builder to create a new instance of class CompositeID.-
Nested classes/interfaces inherited from class com.anaptecs.jeaf.junit.openapi.base.CompositeIDBase
CompositeIDBase.BuilderBase
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompositeID()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedCompositeID(CompositeIDBase.BuilderBase pBuilder)Initialize object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompositeID.Builderbuilder()Method returns a new builder.static CompositeID.Builderbuilder(long pPrimaryCode, long pSecondaryCode)Method creates a new builder and initializes it with the passed attributes.static CompositeID.Builderbuilder(CompositeID pObject)Method creates a new builder and initialize it with the data from the passed object.static CompositeIDdeserialize(java.lang.String pSerialized)Method deserialized the passed String representation of this object into a new instance of this class.java.lang.Stringserialize()Method serializes this object into its custom string representation.-
Methods inherited from class com.anaptecs.jeaf.junit.openapi.base.CompositeIDBase
getPrimaryCode, getSecondaryCode, setPrimaryCode, setSecondaryCode, toString, toStringBuilder
-
-
-
-
Constructor Detail
-
CompositeID
protected CompositeID()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
CompositeID
protected CompositeID(CompositeIDBase.BuilderBase pBuilder)
Initialize object. Nothing special to do.
-
-
Method Detail
-
builder
public static CompositeID.Builder builder()
Method returns a new builder.- Returns:
CompositeID.BuilderNew builder that can be used to create new CompositeID objects.
-
builder
public static CompositeID.Builder builder(CompositeID pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
CompositeID.BuilderNew builder that can be used to create new CompositeID objects. The method never returns null.
-
builder
public static CompositeID.Builder builder(long pPrimaryCode, long pSecondaryCode)
Method creates a new builder and initializes it with the passed attributes.
-
serialize
public java.lang.String serialize()
Method serializes this object into its custom string representation.- Returns:
StringSerialized String representation of this object. The method must not return null.
-
deserialize
public static CompositeID deserialize(java.lang.String pSerialized)
Method deserialized the passed String representation of this object into a new instance of this class.- Parameters:
pSerialized- Serialized representation that should be used to create a new instance. The parameter is never null.- Returns:
CompositeIDInstance of this class as it was deserialized from the passed string. The method must not return null.
-
-