org.teamapps.dto.UiSpacing 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 = UiSpacing.class)
public class UiSpacing implements UiObject {
protected float top = 0;
protected float right = 0;
protected float bottom = 0;
protected float left = 0;
public UiSpacing() {
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_SPACING;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("top=" + top).append(", ")
.append("right=" + right).append(", ")
.append("bottom=" + bottom).append(", ")
.append("left=" + left)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("top")
public float getTop() {
return top;
}
@com.fasterxml.jackson.annotation.JsonGetter("right")
public float getRight() {
return right;
}
@com.fasterxml.jackson.annotation.JsonGetter("bottom")
public float getBottom() {
return bottom;
}
@com.fasterxml.jackson.annotation.JsonGetter("left")
public float getLeft() {
return left;
}
@com.fasterxml.jackson.annotation.JsonSetter("top")
public UiSpacing setTop(float top) {
this.top = top;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("right")
public UiSpacing setRight(float right) {
this.right = right;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("bottom")
public UiSpacing setBottom(float bottom) {
this.bottom = bottom;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("left")
public UiSpacing setLeft(float left) {
this.left = left;
return this;
}
}