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