@Valid public class POI extends Stop
| Modifier and Type | Class and Description |
|---|---|
static class |
POI.Builder
Class implements builder to create a new instance of class POI.
|
| Modifier | Constructor and Description |
|---|---|
protected |
POI()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
POI(POI.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static POI.Builder |
builder()
Method returns a new builder.
|
static POI.Builder |
builder(POI pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static POI.Builder |
builder(String pName,
byte pIndex,
String pDescription)
Method creates a new builder and initializes it with the passed attributes.
|
String |
getDescription()
Method returns the attribute "description".
|
void |
setDescription(String pDescription)
Method sets the attribute "description".
|
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.
|
addToLinks, addToLinks, builder, builder, clearLinks, getIndex, getLinks, getName, removeFromLinks, setIndex, setNameprotected POI()
protected POI(POI.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static POI.Builder builder()
POI.Builder New builder that can be used to create new POI objects.public static POI.Builder builder(POI pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.POI.Builder New builder that can be used to create new POI objects. The method never returns null.public static POI.Builder builder(String pName, byte pIndex, String pDescription)
public String getDescription()
public void setDescription(String pDescription)
pDescription - Value to which the attribute "description" should be set.public StringBuilder toStringBuilder(String pIndent)
toStringBuilder in class StopStringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.