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

org.teamapps.dto.UiMapCircle Maven / Gradle / Ivy

The newest version!
package org.teamapps.dto;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;

/**
 * THIS IS GENERATED CODE!
 * PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiMapCircle.class)
public class UiMapCircle extends AbstractUiMapShape implements UiObject {


	protected UiMapLocation center;
	protected int radius;

	public UiMapCircle() {
		super();
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_MAP_CIRCLE;
	}

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("radius=" + radius).append(", ")
				.append(shapeProperties != null ? "shapeProperties={" + shapeProperties.toString() + "}" : "").append(", ")
				.append(center != null ? "center={" + center.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("center")
	public UiMapLocation getCenter() {
		return center;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("radius")
	public int getRadius() {
		return radius;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("shapeProperties")
	public UiMapCircle setShapeProperties(UiShapeProperties shapeProperties) {
		this.shapeProperties = shapeProperties;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("center")
	public UiMapCircle setCenter(UiMapLocation center) {
		this.center = center;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("radius")
	public UiMapCircle setRadius(int radius) {
		this.radius = radius;
		return this;
	}




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy