org.fiware.ngsi.model.MultiLineStringVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class MultiLineStringVO implements GeometryVO {
public static final java.lang.String JSON_PROPERTY_COORDINATES = "coordinates";
@com.fasterxml.jackson.annotation.JsonProperty(JSON_PROPERTY_COORDINATES)
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
private java.util.List coordinates;
@Override
public GeometryTypeVO getType() {
return GeometryTypeVO.MULTILINESTRING;
}
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
MultiLineStringVO other = (MultiLineStringVO) object;
return java.util.Objects.equals(coordinates, other.coordinates)
&& super.equals(object);
}
@Override
public int hashCode() {
return java.util.Objects.hash(coordinates, super.hashCode());
}
@Override
public java.lang.String toString() {
return new java.lang.StringBuilder()
.append("MultiLineStringVO[")
.append("super").append(super.toString())
.append("coordinates=").append(coordinates)
.append("]")
.toString();
}
// fluent
public MultiLineStringVO coordinates(java.util.List newCoordinates) {
this.coordinates = newCoordinates;
return this;
}
public MultiLineStringVO addCoordinatesItem(LineStringDefinitionVO coordinatesItem) {
if (this.coordinates == null) {
this.coordinates = new java.util.ArrayList<>();
}
this.coordinates.add(coordinatesItem);
return this;
}
public MultiLineStringVO removeCoordinatesItem(LineStringDefinitionVO coordinatesItem) {
if (this.coordinates != null) {
this.coordinates.remove(coordinatesItem);
}
return this;
}
// getter/setter
public java.util.List getCoordinates() {
return coordinates;
}
public void setCoordinates(java.util.List newCoordinates) {
this.coordinates = newCoordinates;
}
}