org.teamapps.dto.UiIncidentGraphDataPoint 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 = UiIncidentGraphDataPoint.class)
public class UiIncidentGraphDataPoint implements UiObject {
protected double x1;
protected double x2;
protected double y;
protected String color;
protected String tooltipHtml;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiIncidentGraphDataPoint() {
// default constructor for Jackson
}
public UiIncidentGraphDataPoint(double x1, double x2, double y, String color, String tooltipHtml) {
this.x1 = x1;
this.x2 = x2;
this.y = y;
this.color = color;
this.tooltipHtml = tooltipHtml;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_INCIDENT_GRAPH_DATA_POINT;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("x1=" + x1).append(", ")
.append("x2=" + x2).append(", ")
.append("y=" + y).append(", ")
.append("color=" + color).append(", ")
.append("tooltipHtml=" + tooltipHtml)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("x1")
public double getX1() {
return x1;
}
@com.fasterxml.jackson.annotation.JsonGetter("x2")
public double getX2() {
return x2;
}
@com.fasterxml.jackson.annotation.JsonGetter("y")
public double getY() {
return y;
}
@com.fasterxml.jackson.annotation.JsonGetter("color")
public String getColor() {
return color;
}
@com.fasterxml.jackson.annotation.JsonGetter("tooltipHtml")
public String getTooltipHtml() {
return tooltipHtml;
}
}