package com.se.nsl.domain.dto;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
@SuppressWarnings("ALL")
|
public class WaterDto {
|
@JSONField(serialize = false)
|
private List<String> files;
|
|
// @JSONField(serialize = false)
|
private Double minHeight;
|
|
// @JSONField(serialize = false)
|
private Double maxHeight;
|
|
private List<Long> data;
|
|
public WaterDto() {
|
this.files = new ArrayList<>();
|
this.data = new ArrayList<>();
|
this.minHeight = Double.MAX_VALUE;
|
this.maxHeight = Double.MIN_VALUE;
|
}
|
|
public void setHeight(double minHeight, double maxHeight) {
|
synchronized (this) {
|
if (this.minHeight > minHeight) {
|
this.minHeight = minHeight;
|
}
|
if (this.maxHeight < maxHeight) {
|
this.maxHeight = maxHeight;
|
}
|
}
|
}
|
|
public List<String> getFiles() {
|
return files;
|
}
|
|
public void setFiles(List<String> files) {
|
this.files = files;
|
}
|
|
public List<Long> getData() {
|
return data;
|
}
|
|
public void setData(List<Long> data) {
|
this.data = data;
|
}
|
|
public Double getMinHeight() {
|
return minHeight;
|
}
|
|
public void setMinHeight(Double minHeight) {
|
this.minHeight = minHeight;
|
}
|
|
public Double getMaxHeight() {
|
return maxHeight;
|
}
|
|
public void setMaxHeight(Double maxHeight) {
|
this.maxHeight = maxHeight;
|
}
|
}
|