All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fiware.ngsi.model.PointVO Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package org.fiware.ngsi.model;

@jakarta.annotation.Generated("org.openapitools.codegen.languages.MicronautCodegen")
@io.micronaut.core.annotation.Introspected
public class PointVO 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 PositionDefinitionVO coordinates;

	@Override
	public GeometryTypeVO getType() {
		return GeometryTypeVO.POINT;
	}

	// methods

	@Override
	public boolean equals(Object object) {
		if (object == this) {
			return true;
		}
		if (object == null || getClass() != object.getClass()) {
			return false;
		}
		PointVO other = (PointVO) 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("PointVO[")
				.append("super").append(super.toString())
				.append("coordinates=").append(coordinates)
				.append("]")
				.toString();
	}

	// fluent

	public PointVO coordinates(PositionDefinitionVO newCoordinates) {
		this.coordinates = newCoordinates;
		return this;
	}

	// getter/setter

	public PositionDefinitionVO getCoordinates() {
		return coordinates;
	}

	public void setCoordinates(PositionDefinitionVO newCoordinates) {
		this.coordinates = newCoordinates;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy