-
-
Save jzrebiec/bda6719eae8222859d11f13197a757e2 to your computer and use it in GitHub Desktop.
expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* API | |
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |
* | |
* The version of the OpenAPI document: 1.0.0 | |
* | |
* | |
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |
* https://openapi-generator.tech | |
* Do not edit the class manually. | |
*/ | |
package com.my.project; | |
import java.util.Objects; | |
import java.util.Arrays; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import com.fasterxml.jackson.dataformat.xml.annotation.*; | |
import javax.xml.bind.annotation.*; | |
import com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonValue; | |
/** | |
* Gets or Sets RefAttribute | |
*/ | |
public enum RefAttribute { | |
A("A"), | |
B("B"), | |
C("C"); | |
private String value; | |
RefAttribute(String value) { | |
this.value = value; | |
} | |
@JsonValue | |
public String getValue() { | |
return value; | |
} | |
@Override | |
public String toString() { | |
return String.valueOf(value); | |
} | |
@JsonCreator | |
public static RefAttribute fromValue(String value) { | |
for (RefAttribute b : RefAttribute.values()) { | |
if (b.value.equals(value)) { | |
return b; | |
} | |
} | |
throw new IllegalArgumentException("Unexpected value '" + value + "'"); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* API | |
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |
* | |
* The version of the OpenAPI document: 1.0.0 | |
* | |
* | |
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |
* https://openapi-generator.tech | |
* Do not edit the class manually. | |
*/ | |
package com.my.project; | |
import java.util.Objects; | |
import java.util.Arrays; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonValue; | |
import io.swagger.annotations.ApiModel; | |
import io.swagger.annotations.ApiModelProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import com.fasterxml.jackson.dataformat.xml.annotation.*; | |
import javax.xml.bind.annotation.*; | |
/** | |
* RefNode | |
*/ | |
@JsonPropertyOrder({ | |
RefNode.JSON_PROPERTY_PROP1, | |
RefNode.JSON_PROPERTY_PROP2 | |
}) | |
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-04-20T15:57:15.838334800+02:00[Europe/Belgrade]") | |
@XmlRootElement(name = "REF_NODE") | |
@XmlAccessorType(XmlAccessType.FIELD) | |
@JacksonXmlRootElement(localName = "REF_NODE") | |
public class RefNode { | |
public static final String JSON_PROPERTY_PROP1 = "prop1"; | |
@XmlElement(name = "prop1") | |
private String prop1; | |
public static final String JSON_PROPERTY_PROP2 = "prop2"; | |
@XmlElement(name = "prop2") | |
private String prop2; | |
public RefNode prop1(String prop1) { | |
this.prop1 = prop1; | |
return this; | |
} | |
/** | |
* Get prop1 | |
* @return prop1 | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_PROP1) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(localName = "prop1") | |
public String getProp1() { | |
return prop1; | |
} | |
public void setProp1(String prop1) { | |
this.prop1 = prop1; | |
} | |
public RefNode prop2(String prop2) { | |
this.prop2 = prop2; | |
return this; | |
} | |
/** | |
* Get prop2 | |
* @return prop2 | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_PROP2) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(localName = "prop2") | |
public String getProp2() { | |
return prop2; | |
} | |
public void setProp2(String prop2) { | |
this.prop2 = prop2; | |
} | |
@Override | |
public boolean equals(java.lang.Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
RefNode refNode = (RefNode) o; | |
return Objects.equals(this.prop1, refNode.prop1) && | |
Objects.equals(this.prop2, refNode.prop2); | |
} | |
@Override | |
public int hashCode() { | |
return Objects.hash(prop1, prop2); | |
} | |
@Override | |
public String toString() { | |
StringBuilder sb = new StringBuilder(); | |
sb.append("class RefNode {\n"); | |
sb.append(" prop1: ").append(toIndentedString(prop1)).append("\n"); | |
sb.append(" prop2: ").append(toIndentedString(prop2)).append("\n"); | |
sb.append("}"); | |
return sb.toString(); | |
} | |
/** | |
* Convert the given object to string with each line indented by 4 spaces | |
* (except the first line). | |
*/ | |
private String toIndentedString(java.lang.Object o) { | |
if (o == null) { | |
return "null"; | |
} | |
return o.toString().replace("\n", "\n "); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* API | |
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |
* | |
* The version of the OpenAPI document: 1.0.0 | |
* | |
* | |
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |
* https://openapi-generator.tech | |
* Do not edit the class manually. | |
*/ | |
package com.my.project; | |
import java.util.Objects; | |
import java.util.Arrays; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonValue; | |
import com.my.project.RefAttribute; | |
import com.my.project.RefNode; | |
import com.my.project.RequestSimpleNode; | |
import io.swagger.annotations.ApiModel; | |
import io.swagger.annotations.ApiModelProperty; | |
import java.util.ArrayList; | |
import java.util.List; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import com.fasterxml.jackson.dataformat.xml.annotation.*; | |
import javax.xml.bind.annotation.*; | |
/** | |
* Request | |
*/ | |
@JsonPropertyOrder({ | |
Request.JSON_PROPERTY_SIMPLE_ATTRIBUTE, | |
Request.JSON_PROPERTY_REF_ATTRIBUTE, | |
Request.JSON_PROPERTY_SIMPLE_NODE, | |
Request.JSON_PROPERTY_REF_NODE, | |
Request.JSON_PROPERTY_SIMPLE_ARRAY, | |
Request.JSON_PROPERTY_SIMPLE_WRAPPED_ARRAY, | |
Request.JSON_PROPERTY_NODE_ARRAY, | |
Request.JSON_PROPERTY_WRAPPED_NODE_ARRAY | |
}) | |
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-04-20T15:57:15.838334800+02:00[Europe/Belgrade]") | |
@XmlRootElement(name = "Request") | |
@XmlAccessorType(XmlAccessType.FIELD) | |
@JacksonXmlRootElement(localName = "Request") | |
public class Request { | |
public static final String JSON_PROPERTY_SIMPLE_ATTRIBUTE = "simpleAttribute"; | |
@XmlAttribute(name = "ATTR") | |
private String simpleAttribute; | |
public static final String JSON_PROPERTY_REF_ATTRIBUTE = "refAttribute"; | |
@XmlAttribute(name = "REF_ATTR") | |
private RefAttribute refAttribute; | |
public static final String JSON_PROPERTY_SIMPLE_NODE = "simpleNode"; | |
@XmlElement(name = "NODE") | |
private RequestSimpleNode simpleNode; | |
public static final String JSON_PROPERTY_REF_NODE = "refNode"; | |
@XmlElement(name = "REF_NODE") | |
private RefNode refNode; | |
public static final String JSON_PROPERTY_SIMPLE_ARRAY = "simpleArray"; | |
// Is a container wrapped=false | |
// items.name=simpleArray items.baseName=simpleArray items.xmlName=ARR_ITEM items.xmlNamespace= | |
// items.example= items.type=String | |
@XmlElement(name = "ARR_ITEM") | |
private List<String> simpleArray = null; | |
public static final String JSON_PROPERTY_SIMPLE_WRAPPED_ARRAY = "simpleWrappedArray"; | |
// Is a container wrapped=true | |
// items.name=simpleWrappedArray items.baseName=simpleWrappedArray items.xmlName=ARR_ITEM items.xmlNamespace= | |
// items.example= items.type=String | |
@XmlElement(name = "ARR_ITEM") | |
@XmlElementWrapper(name = "WRAPPED_ARRAY") | |
private List<String> simpleWrappedArray = null; | |
public static final String JSON_PROPERTY_NODE_ARRAY = "nodeArray"; | |
// Is a container wrapped=false | |
// items.name=nodeArray items.baseName=nodeArray items.xmlName=REF_NODE items.xmlNamespace= | |
// items.example= items.type=RefNode | |
@XmlElement(name = "REF_NODE") | |
private List<RefNode> nodeArray = null; | |
public static final String JSON_PROPERTY_WRAPPED_NODE_ARRAY = "wrappedNodeArray"; | |
// Is a container wrapped=true | |
// items.name=wrappedNodeArray items.baseName=wrappedNodeArray items.xmlName=REF_NODE items.xmlNamespace= | |
// items.example= items.type=RefNode | |
@XmlElement(name = "REF_NODE") | |
@XmlElementWrapper(name = "WRAPPED_NODE_ARRAY") | |
private List<RefNode> wrappedNodeArray = null; | |
public Request simpleAttribute(String simpleAttribute) { | |
this.simpleAttribute = simpleAttribute; | |
return this; | |
} | |
/** | |
* Get simpleAttribute | |
* @return simpleAttribute | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_SIMPLE_ATTRIBUTE) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(isAttribute = true, localName = "ATTR") | |
public String getSimpleAttribute() { | |
return simpleAttribute; | |
} | |
public void setSimpleAttribute(String simpleAttribute) { | |
this.simpleAttribute = simpleAttribute; | |
} | |
public Request refAttribute(RefAttribute refAttribute) { | |
this.refAttribute = refAttribute; | |
return this; | |
} | |
/** | |
* Get refAttribute | |
* @return refAttribute | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_REF_ATTRIBUTE) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(isAttribute = true, localName = "REF_ATTR") | |
public RefAttribute getRefAttribute() { | |
return refAttribute; | |
} | |
public void setRefAttribute(RefAttribute refAttribute) { | |
this.refAttribute = refAttribute; | |
} | |
public Request simpleNode(RequestSimpleNode simpleNode) { | |
this.simpleNode = simpleNode; | |
return this; | |
} | |
/** | |
* Get simpleNode | |
* @return simpleNode | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_SIMPLE_NODE) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(localName = "NODE") | |
public RequestSimpleNode getSimpleNode() { | |
return simpleNode; | |
} | |
public void setSimpleNode(RequestSimpleNode simpleNode) { | |
this.simpleNode = simpleNode; | |
} | |
public Request refNode(RefNode refNode) { | |
this.refNode = refNode; | |
return this; | |
} | |
/** | |
* Get refNode | |
* @return refNode | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_REF_NODE) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(localName = "REF_NODE") | |
public RefNode getRefNode() { | |
return refNode; | |
} | |
public void setRefNode(RefNode refNode) { | |
this.refNode = refNode; | |
} | |
public Request simpleArray(List<String> simpleArray) { | |
this.simpleArray = simpleArray; | |
return this; | |
} | |
public Request addSimpleArrayItem(String simpleArrayItem) { | |
if (this.simpleArray == null) { | |
this.simpleArray = new ArrayList<>(); | |
} | |
this.simpleArray.add(simpleArrayItem); | |
return this; | |
} | |
/** | |
* Get simpleArray | |
* @return simpleArray | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_SIMPLE_ARRAY) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
// items.xmlName=ARR_ITEM | |
@JacksonXmlProperty(localName = "ARR_ITEM") | |
@JacksonXmlElementWrapper(useWrapping = false) | |
public List<String> getSimpleArray() { | |
return simpleArray; | |
} | |
public void setSimpleArray(List<String> simpleArray) { | |
this.simpleArray = simpleArray; | |
} | |
public Request simpleWrappedArray(List<String> simpleWrappedArray) { | |
this.simpleWrappedArray = simpleWrappedArray; | |
return this; | |
} | |
public Request addSimpleWrappedArrayItem(String simpleWrappedArrayItem) { | |
if (this.simpleWrappedArray == null) { | |
this.simpleWrappedArray = new ArrayList<>(); | |
} | |
this.simpleWrappedArray.add(simpleWrappedArrayItem); | |
return this; | |
} | |
/** | |
* Get simpleWrappedArray | |
* @return simpleWrappedArray | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_SIMPLE_WRAPPED_ARRAY) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
// items.xmlName=ARR_ITEM | |
@JacksonXmlProperty(localName = "ARR_ITEM") | |
@JacksonXmlElementWrapper(useWrapping = true, localName = "WRAPPED_ARRAY") | |
public List<String> getSimpleWrappedArray() { | |
return simpleWrappedArray; | |
} | |
public void setSimpleWrappedArray(List<String> simpleWrappedArray) { | |
this.simpleWrappedArray = simpleWrappedArray; | |
} | |
public Request nodeArray(List<RefNode> nodeArray) { | |
this.nodeArray = nodeArray; | |
return this; | |
} | |
public Request addNodeArrayItem(RefNode nodeArrayItem) { | |
if (this.nodeArray == null) { | |
this.nodeArray = new ArrayList<>(); | |
} | |
this.nodeArray.add(nodeArrayItem); | |
return this; | |
} | |
/** | |
* Get nodeArray | |
* @return nodeArray | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_NODE_ARRAY) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
// items.xmlName=REF_NODE | |
@JacksonXmlProperty(localName = "REF_NODE") | |
@JacksonXmlElementWrapper(useWrapping = false) | |
public List<RefNode> getNodeArray() { | |
return nodeArray; | |
} | |
public void setNodeArray(List<RefNode> nodeArray) { | |
this.nodeArray = nodeArray; | |
} | |
public Request wrappedNodeArray(List<RefNode> wrappedNodeArray) { | |
this.wrappedNodeArray = wrappedNodeArray; | |
return this; | |
} | |
public Request addWrappedNodeArrayItem(RefNode wrappedNodeArrayItem) { | |
if (this.wrappedNodeArray == null) { | |
this.wrappedNodeArray = new ArrayList<>(); | |
} | |
this.wrappedNodeArray.add(wrappedNodeArrayItem); | |
return this; | |
} | |
/** | |
* Get wrappedNodeArray | |
* @return wrappedNodeArray | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_WRAPPED_NODE_ARRAY) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
// items.xmlName=REF_NODE | |
@JacksonXmlProperty(localName = "REF_NODE") | |
@JacksonXmlElementWrapper(useWrapping = true, localName = "WRAPPED_NODE_ARRAY") | |
public List<RefNode> getWrappedNodeArray() { | |
return wrappedNodeArray; | |
} | |
public void setWrappedNodeArray(List<RefNode> wrappedNodeArray) { | |
this.wrappedNodeArray = wrappedNodeArray; | |
} | |
@Override | |
public boolean equals(java.lang.Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
Request request = (Request) o; | |
return Objects.equals(this.simpleAttribute, request.simpleAttribute) && | |
Objects.equals(this.refAttribute, request.refAttribute) && | |
Objects.equals(this.simpleNode, request.simpleNode) && | |
Objects.equals(this.refNode, request.refNode) && | |
Objects.equals(this.simpleArray, request.simpleArray) && | |
Objects.equals(this.simpleWrappedArray, request.simpleWrappedArray) && | |
Objects.equals(this.nodeArray, request.nodeArray) && | |
Objects.equals(this.wrappedNodeArray, request.wrappedNodeArray); | |
} | |
@Override | |
public int hashCode() { | |
return Objects.hash(simpleAttribute, refAttribute, simpleNode, refNode, simpleArray, simpleWrappedArray, nodeArray, wrappedNodeArray); | |
} | |
@Override | |
public String toString() { | |
StringBuilder sb = new StringBuilder(); | |
sb.append("class Request {\n"); | |
sb.append(" simpleAttribute: ").append(toIndentedString(simpleAttribute)).append("\n"); | |
sb.append(" refAttribute: ").append(toIndentedString(refAttribute)).append("\n"); | |
sb.append(" simpleNode: ").append(toIndentedString(simpleNode)).append("\n"); | |
sb.append(" refNode: ").append(toIndentedString(refNode)).append("\n"); | |
sb.append(" simpleArray: ").append(toIndentedString(simpleArray)).append("\n"); | |
sb.append(" simpleWrappedArray: ").append(toIndentedString(simpleWrappedArray)).append("\n"); | |
sb.append(" nodeArray: ").append(toIndentedString(nodeArray)).append("\n"); | |
sb.append(" wrappedNodeArray: ").append(toIndentedString(wrappedNodeArray)).append("\n"); | |
sb.append("}"); | |
return sb.toString(); | |
} | |
/** | |
* Convert the given object to string with each line indented by 4 spaces | |
* (except the first line). | |
*/ | |
private String toIndentedString(java.lang.Object o) { | |
if (o == null) { | |
return "null"; | |
} | |
return o.toString().replace("\n", "\n "); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* API | |
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |
* | |
* The version of the OpenAPI document: 1.0.0 | |
* | |
* | |
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | |
* https://openapi-generator.tech | |
* Do not edit the class manually. | |
*/ | |
package com.my.project; | |
import java.util.Objects; | |
import java.util.Arrays; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonValue; | |
import io.swagger.annotations.ApiModel; | |
import io.swagger.annotations.ApiModelProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import com.fasterxml.jackson.dataformat.xml.annotation.*; | |
import javax.xml.bind.annotation.*; | |
/** | |
* RequestSimpleNode | |
*/ | |
@JsonPropertyOrder({ | |
RequestSimpleNode.JSON_PROPERTY_PROP1, | |
RequestSimpleNode.JSON_PROPERTY_PROP2 | |
}) | |
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-04-20T15:57:15.838334800+02:00[Europe/Belgrade]") | |
@XmlRootElement(name = "NODE") | |
@XmlAccessorType(XmlAccessType.FIELD) | |
@JacksonXmlRootElement(localName = "NODE") | |
public class RequestSimpleNode { | |
public static final String JSON_PROPERTY_PROP1 = "prop1"; | |
@XmlElement(name = "prop1") | |
private String prop1; | |
public static final String JSON_PROPERTY_PROP2 = "prop2"; | |
@XmlElement(name = "prop2") | |
private String prop2; | |
public RequestSimpleNode prop1(String prop1) { | |
this.prop1 = prop1; | |
return this; | |
} | |
/** | |
* Get prop1 | |
* @return prop1 | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_PROP1) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(localName = "prop1") | |
public String getProp1() { | |
return prop1; | |
} | |
public void setProp1(String prop1) { | |
this.prop1 = prop1; | |
} | |
public RequestSimpleNode prop2(String prop2) { | |
this.prop2 = prop2; | |
return this; | |
} | |
/** | |
* Get prop2 | |
* @return prop2 | |
**/ | |
@javax.annotation.Nullable | |
@ApiModelProperty(value = "") | |
@JsonProperty(JSON_PROPERTY_PROP2) | |
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | |
@JacksonXmlProperty(localName = "prop2") | |
public String getProp2() { | |
return prop2; | |
} | |
public void setProp2(String prop2) { | |
this.prop2 = prop2; | |
} | |
@Override | |
public boolean equals(java.lang.Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
RequestSimpleNode requestSimpleNode = (RequestSimpleNode) o; | |
return Objects.equals(this.prop1, requestSimpleNode.prop1) && | |
Objects.equals(this.prop2, requestSimpleNode.prop2); | |
} | |
@Override | |
public int hashCode() { | |
return Objects.hash(prop1, prop2); | |
} | |
@Override | |
public String toString() { | |
StringBuilder sb = new StringBuilder(); | |
sb.append("class RequestSimpleNode {\n"); | |
sb.append(" prop1: ").append(toIndentedString(prop1)).append("\n"); | |
sb.append(" prop2: ").append(toIndentedString(prop2)).append("\n"); | |
sb.append("}"); | |
return sb.toString(); | |
} | |
/** | |
* Convert the given object to string with each line indented by 4 spaces | |
* (except the first line). | |
*/ | |
private String toIndentedString(java.lang.Object o) { | |
if (o == null) { | |
return "null"; | |
} | |
return o.toString().replace("\n", "\n "); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment