You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A complex data structure with nested objects and arrays designed to demonstrate compression
47
-
* benefits. Fields are public + have no-arg constructors so the JSON data converter can
48
-
* serialize and deserialize them.
47
+
* benefits. Fields are public + have no-arg constructors so the JSON data converter can serialize
48
+
* and deserialize them.
49
49
*/
50
50
publicstaticfinalclassLargePayload {
51
51
publicStringid;
@@ -149,9 +149,10 @@ public static LargePayload createLargePayload() {
149
149
LargePayloadp = newLargePayload();
150
150
p.id = "large_payload_001";
151
151
p.name = "Comprehensive Product Catalog";
152
-
p.description = repeat(
153
-
"This is a comprehensive product catalog containing thousands of items with detailed descriptions, specifications, and user reviews. Each item includes pricing information, inventory status, and customer feedback. The catalog is designed to provide complete information for customers making purchasing decisions. ",
154
-
50);
152
+
p.description =
153
+
repeat(
154
+
"This is a comprehensive product catalog containing thousands of items with detailed descriptions, specifications, and user reviews. Each item includes pricing information, inventory status, and customer feedback. The catalog is designed to provide complete information for customers making purchasing decisions. ",
155
+
50);
155
156
156
157
p.metadata = newLinkedHashMap<>();
157
158
for (inti = 0; i < 30; i++) {
@@ -167,9 +168,10 @@ public static LargePayload createLargePayload() {
167
168
Itemit = newItem();
168
169
it.itemId = "item_" + i;
169
170
it.title = "High-Quality Product " + i + " with Advanced Features";
170
-
it.description = repeat(
171
-
"This is a premium product with exceptional quality and advanced features designed for professional use. It includes comprehensive documentation and support. ",
172
-
10);
171
+
it.description =
172
+
repeat(
173
+
"This is a premium product with exceptional quality and advanced features designed for professional use. It includes comprehensive documentation and support. ",
174
+
10);
173
175
it.price = 100.0 + i * 10 + (i % 100) / 100.0;
174
176
it.categories = newArrayList<>();
175
177
it.categories.add("Electronics");
@@ -192,9 +194,10 @@ public static LargePayload createLargePayload() {
192
194
r.reviewId = "review_" + i + "_" + j;
193
195
r.userId = "user_" + j;
194
196
r.rating = 1 + (j % 5);
195
-
r.comment = repeat(
196
-
"This is a detailed customer review with comprehensive feedback about the product quality, delivery experience, and overall satisfaction. The customer provides specific details about their experience. ",
197
-
3);
197
+
r.comment =
198
+
repeat(
199
+
"This is a detailed customer review with comprehensive feedback about the product quality, delivery experience, and overall satisfaction. The customer provides specific details about their experience. ",
0 commit comments