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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
| public class Node {
private Long item1;
private Map<Long, Long> item2s;
private List<Long> item3s;
public static NodeBuilder builder() {
return new NodeBuilder();
}
public NodeBuilder toBuilder() {
NodeBuilder builder = (new NodeBuilder()).item1(this.item1);
if (this.item2s != null) {
builder.item2s(this.item2s);
}
if (this.item3s != null) {
builder.item3s(this.item3s);
}
return builder;
}
public String toString() {
return "Node(item1=" + this.item1 + ", item2s=" + this.item2s + ", item3s=" + this.item3s + ")";
}
public Node(Long item1, Map<Long, Long> item2s, List<Long> item3s) {
this.item1 = item1;
this.item2s = item2s;
this.item3s = item3s;
}
public static class NodeBuilder {
private Long item1;
private ArrayList<Long> item2s$key;
private ArrayList<Long> item2s$value;
private ArrayList<Long> item3s;
NodeBuilder() {
}
public NodeBuilder item1(Long item1) {
this.item1 = item1;
return this;
}
public NodeBuilder item2(Long item2Key, Long item2Value) {
if (this.item2s$key == null) {
this.item2s$key = new ArrayList();
this.item2s$value = new ArrayList();
}
this.item2s$key.add(item2Key);
this.item2s$value.add(item2Value);
return this;
}
public NodeBuilder item2s(Map<? extends Long, ? extends Long> item2s) {
if (item2s == null) {
throw new NullPointerException("item2s cannot be null");
} else {
if (this.item2s$key == null) {
this.item2s$key = new ArrayList();
this.item2s$value = new ArrayList();
}
Iterator var2 = item2s.entrySet().iterator();
while(var2.hasNext()) {
Map.Entry<? extends Long, ? extends Long> $lombokEntry = (Map.Entry)var2.next();
this.item2s$key.add($lombokEntry.getKey());
this.item2s$value.add($lombokEntry.getValue());
}
return this;
}
}
public NodeBuilder clearItem2s() {
if (this.item2s$key != null) {
this.item2s$key.clear();
this.item2s$value.clear();
}
return this;
}
public NodeBuilder item3(Long item3) {
if (this.item3s == null) {
this.item3s = new ArrayList();
}
this.item3s.add(item3);
return this;
}
public NodeBuilder item3s(Collection<? extends Long> item3s) {
if (item3s == null) {
throw new NullPointerException("item3s cannot be null");
} else {
if (this.item3s == null) {
this.item3s = new ArrayList();
}
this.item3s.addAll(item3s);
return this;
}
}
public NodeBuilder clearItem3s() {
if (this.item3s != null) {
this.item3s.clear();
}
return this;
}
public Node build() {
Map item2s;
switch (this.item2s$key == null ? 0 : this.item2s$key.size()) {
case 0:
item2s = Collections.emptyMap();
break;
case 1:
item2s = Collections.singletonMap(this.item2s$key.get(0), this.item2s$value.get(0));
break;
default:
Map<Long, Long> item2s = new LinkedHashMap(this.item2s$key.size() < 1073741824 ? 1 + this.item2s$key.size() + (this.item2s$key.size() - 3) / 3 : Integer.MAX_VALUE);
for(int $i = 0; $i < this.item2s$key.size(); ++$i) {
item2s.put(this.item2s$key.get($i), (Long)this.item2s$value.get($i));
}
item2s = Collections.unmodifiableMap(item2s);
}
List item3s;
switch (this.item3s == null ? 0 : this.item3s.size()) {
case 0:
item3s = Collections.emptyList();
break;
case 1:
item3s = Collections.singletonList(this.item3s.get(0));
break;
default:
item3s = Collections.unmodifiableList(new ArrayList(this.item3s));
}
return new Node(this.item1, item2s, item3s);
}
public String toString() {
return "Node.NodeBuilder(item1=" + this.item1 + ", item2s$key=" + this.item2s$key + ", item2s$value=" + this.item2s$value + ", item3s=" + this.item3s + ")";
}
}
}
|