org.teamapps.dto.UiHeatMapData Maven / Gradle / Ivy
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 = UiHeatMapData.class)
public class UiHeatMapData implements UiObject {
protected List elements;
protected int maxCount = 10;
protected int radius = 25;
protected int blur = 15;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiHeatMapData() {
// default constructor for Jackson
}
public UiHeatMapData(List elements) {
this.elements = elements;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_HEAT_MAP_DATA;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("maxCount=" + maxCount).append(", ")
.append("radius=" + radius).append(", ")
.append("blur=" + blur).append(", ")
.append(elements != null ? "elements={" + elements.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("elements")
public List getElements() {
return elements;
}
@com.fasterxml.jackson.annotation.JsonGetter("maxCount")
public int getMaxCount() {
return maxCount;
}
@com.fasterxml.jackson.annotation.JsonGetter("radius")
public int getRadius() {
return radius;
}
@com.fasterxml.jackson.annotation.JsonGetter("blur")
public int getBlur() {
return blur;
}
@com.fasterxml.jackson.annotation.JsonSetter("maxCount")
public UiHeatMapData setMaxCount(int maxCount) {
this.maxCount = maxCount;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("radius")
public UiHeatMapData setRadius(int radius) {
this.radius = radius;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("blur")
public UiHeatMapData setBlur(int blur) {
this.blur = blur;
return this;
}
}