org.fiware.ngsi.model.PolygonVO Maven / Gradle / Ivy
package org.fiware.ngsi.model;
@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class PolygonVO 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 PolygonDefinitionVO coordinates;
@Override
public GeometryTypeVO getType() {
return GeometryTypeVO.POLYGON;
}
// methods
@Override
public boolean equals(Object object) {
if (object == this) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
PolygonVO other = (PolygonVO) 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("PolygonVO[")
.append("super").append(super.toString())
.append("coordinates=").append(coordinates)
.append("]")
.toString();
}
// fluent
public PolygonVO coordinates(PolygonDefinitionVO newCoordinates) {
this.coordinates = newCoordinates;
return this;
}
// getter/setter
public PolygonDefinitionVO getCoordinates() {
return coordinates;
}
public void setCoordinates(PolygonDefinitionVO newCoordinates) {
this.coordinates = newCoordinates;
}
}