-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathRuleBasedSegment.java
More file actions
37 lines (31 loc) · 1.01 KB
/
RuleBasedSegment.java
File metadata and controls
37 lines (31 loc) · 1.01 KB
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
package io.split.client.dtos;
import java.util.ArrayList;
import java.util.List;
public class RuleBasedSegment {
public String name;
public Status status;
public String trafficTypeName;
public long changeNumber;
public List<Condition> conditions;
public Excluded excluded;
@Override
public String toString() {
return "RuleBasedSegment{" +
"name='" + name + '\'' +
", status=" + status +
", trafficTypeName='" + trafficTypeName + '\'' +
", changeNumber=" + changeNumber + '\'' +
excludedToString() + '\'' +
'}';
}
public String excludedToString() {
Excluded ts = excluded != null ? excluded : new Excluded();
if (ts.keys == null) {
ts.keys = new ArrayList<>();
}
if (ts.segments == null) {
ts.segments = new ArrayList<>();
}
return ", excludedKeys=" + ts.keys + '\'' + ", excludedSegments=" + ts.segments;
}
}