wuww
2025-04-11 4dfc75b7061bee39968df9e94ee0f56bc003f5fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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;
    }
}