18
18
19
19
package scheme ;
20
20
21
+ import com .google .errorprone .annotations .CanIgnoreReturnValue ;
22
+ import com .google .errorprone .annotations .CheckReturnValue ;
21
23
import palettes .CorePalette ;
22
24
23
25
/** Represents a Material color scheme, a mapping of color roles to colors. */
26
+ @ CheckReturnValue
24
27
public class Scheme {
25
28
private int primary ;
26
29
private int onPrimary ;
@@ -196,6 +199,7 @@ public void setPrimary(int primary) {
196
199
this .primary = primary ;
197
200
}
198
201
202
+ @ CanIgnoreReturnValue
199
203
public Scheme withPrimary (int primary ) {
200
204
this .primary = primary ;
201
205
return this ;
@@ -209,6 +213,7 @@ public void setOnPrimary(int onPrimary) {
209
213
this .onPrimary = onPrimary ;
210
214
}
211
215
216
+ @ CanIgnoreReturnValue
212
217
public Scheme withOnPrimary (int onPrimary ) {
213
218
this .onPrimary = onPrimary ;
214
219
return this ;
@@ -222,6 +227,7 @@ public void setPrimaryContainer(int primaryContainer) {
222
227
this .primaryContainer = primaryContainer ;
223
228
}
224
229
230
+ @ CanIgnoreReturnValue
225
231
public Scheme withPrimaryContainer (int primaryContainer ) {
226
232
this .primaryContainer = primaryContainer ;
227
233
return this ;
@@ -235,6 +241,7 @@ public void setOnPrimaryContainer(int onPrimaryContainer) {
235
241
this .onPrimaryContainer = onPrimaryContainer ;
236
242
}
237
243
244
+ @ CanIgnoreReturnValue
238
245
public Scheme withOnPrimaryContainer (int onPrimaryContainer ) {
239
246
this .onPrimaryContainer = onPrimaryContainer ;
240
247
return this ;
@@ -248,6 +255,7 @@ public void setSecondary(int secondary) {
248
255
this .secondary = secondary ;
249
256
}
250
257
258
+ @ CanIgnoreReturnValue
251
259
public Scheme withSecondary (int secondary ) {
252
260
this .secondary = secondary ;
253
261
return this ;
@@ -261,6 +269,7 @@ public void setOnSecondary(int onSecondary) {
261
269
this .onSecondary = onSecondary ;
262
270
}
263
271
272
+ @ CanIgnoreReturnValue
264
273
public Scheme withOnSecondary (int onSecondary ) {
265
274
this .onSecondary = onSecondary ;
266
275
return this ;
@@ -274,6 +283,7 @@ public void setSecondaryContainer(int secondaryContainer) {
274
283
this .secondaryContainer = secondaryContainer ;
275
284
}
276
285
286
+ @ CanIgnoreReturnValue
277
287
public Scheme withSecondaryContainer (int secondaryContainer ) {
278
288
this .secondaryContainer = secondaryContainer ;
279
289
return this ;
@@ -287,6 +297,7 @@ public void setOnSecondaryContainer(int onSecondaryContainer) {
287
297
this .onSecondaryContainer = onSecondaryContainer ;
288
298
}
289
299
300
+ @ CanIgnoreReturnValue
290
301
public Scheme withOnSecondaryContainer (int onSecondaryContainer ) {
291
302
this .onSecondaryContainer = onSecondaryContainer ;
292
303
return this ;
@@ -300,6 +311,7 @@ public void setTertiary(int tertiary) {
300
311
this .tertiary = tertiary ;
301
312
}
302
313
314
+ @ CanIgnoreReturnValue
303
315
public Scheme withTertiary (int tertiary ) {
304
316
this .tertiary = tertiary ;
305
317
return this ;
@@ -313,6 +325,7 @@ public void setOnTertiary(int onTertiary) {
313
325
this .onTertiary = onTertiary ;
314
326
}
315
327
328
+ @ CanIgnoreReturnValue
316
329
public Scheme withOnTertiary (int onTertiary ) {
317
330
this .onTertiary = onTertiary ;
318
331
return this ;
@@ -326,6 +339,7 @@ public void setTertiaryContainer(int tertiaryContainer) {
326
339
this .tertiaryContainer = tertiaryContainer ;
327
340
}
328
341
342
+ @ CanIgnoreReturnValue
329
343
public Scheme withTertiaryContainer (int tertiaryContainer ) {
330
344
this .tertiaryContainer = tertiaryContainer ;
331
345
return this ;
@@ -339,6 +353,7 @@ public void setOnTertiaryContainer(int onTertiaryContainer) {
339
353
this .onTertiaryContainer = onTertiaryContainer ;
340
354
}
341
355
356
+ @ CanIgnoreReturnValue
342
357
public Scheme withOnTertiaryContainer (int onTertiaryContainer ) {
343
358
this .onTertiaryContainer = onTertiaryContainer ;
344
359
return this ;
@@ -352,6 +367,7 @@ public void setError(int error) {
352
367
this .error = error ;
353
368
}
354
369
370
+ @ CanIgnoreReturnValue
355
371
public Scheme withError (int error ) {
356
372
this .error = error ;
357
373
return this ;
@@ -365,6 +381,7 @@ public void setOnError(int onError) {
365
381
this .onError = onError ;
366
382
}
367
383
384
+ @ CanIgnoreReturnValue
368
385
public Scheme withOnError (int onError ) {
369
386
this .onError = onError ;
370
387
return this ;
@@ -378,6 +395,7 @@ public void setErrorContainer(int errorContainer) {
378
395
this .errorContainer = errorContainer ;
379
396
}
380
397
398
+ @ CanIgnoreReturnValue
381
399
public Scheme withErrorContainer (int errorContainer ) {
382
400
this .errorContainer = errorContainer ;
383
401
return this ;
@@ -391,6 +409,7 @@ public void setOnErrorContainer(int onErrorContainer) {
391
409
this .onErrorContainer = onErrorContainer ;
392
410
}
393
411
412
+ @ CanIgnoreReturnValue
394
413
public Scheme withOnErrorContainer (int onErrorContainer ) {
395
414
this .onErrorContainer = onErrorContainer ;
396
415
return this ;
@@ -404,6 +423,7 @@ public void setBackground(int background) {
404
423
this .background = background ;
405
424
}
406
425
426
+ @ CanIgnoreReturnValue
407
427
public Scheme withBackground (int background ) {
408
428
this .background = background ;
409
429
return this ;
@@ -417,6 +437,7 @@ public void setOnBackground(int onBackground) {
417
437
this .onBackground = onBackground ;
418
438
}
419
439
440
+ @ CanIgnoreReturnValue
420
441
public Scheme withOnBackground (int onBackground ) {
421
442
this .onBackground = onBackground ;
422
443
return this ;
@@ -430,6 +451,7 @@ public void setSurface(int surface) {
430
451
this .surface = surface ;
431
452
}
432
453
454
+ @ CanIgnoreReturnValue
433
455
public Scheme withSurface (int surface ) {
434
456
this .surface = surface ;
435
457
return this ;
@@ -443,6 +465,7 @@ public void setOnSurface(int onSurface) {
443
465
this .onSurface = onSurface ;
444
466
}
445
467
468
+ @ CanIgnoreReturnValue
446
469
public Scheme withOnSurface (int onSurface ) {
447
470
this .onSurface = onSurface ;
448
471
return this ;
@@ -456,6 +479,7 @@ public void setSurfaceVariant(int surfaceVariant) {
456
479
this .surfaceVariant = surfaceVariant ;
457
480
}
458
481
482
+ @ CanIgnoreReturnValue
459
483
public Scheme withSurfaceVariant (int surfaceVariant ) {
460
484
this .surfaceVariant = surfaceVariant ;
461
485
return this ;
@@ -469,6 +493,7 @@ public void setOnSurfaceVariant(int onSurfaceVariant) {
469
493
this .onSurfaceVariant = onSurfaceVariant ;
470
494
}
471
495
496
+ @ CanIgnoreReturnValue
472
497
public Scheme withOnSurfaceVariant (int onSurfaceVariant ) {
473
498
this .onSurfaceVariant = onSurfaceVariant ;
474
499
return this ;
@@ -482,6 +507,7 @@ public void setOutline(int outline) {
482
507
this .outline = outline ;
483
508
}
484
509
510
+ @ CanIgnoreReturnValue
485
511
public Scheme withOutline (int outline ) {
486
512
this .outline = outline ;
487
513
return this ;
@@ -495,6 +521,7 @@ public void setShadow(int shadow) {
495
521
this .shadow = shadow ;
496
522
}
497
523
524
+ @ CanIgnoreReturnValue
498
525
public Scheme withShadow (int shadow ) {
499
526
this .shadow = shadow ;
500
527
return this ;
@@ -508,6 +535,7 @@ public void setInverseSurface(int inverseSurface) {
508
535
this .inverseSurface = inverseSurface ;
509
536
}
510
537
538
+ @ CanIgnoreReturnValue
511
539
public Scheme withInverseSurface (int inverseSurface ) {
512
540
this .inverseSurface = inverseSurface ;
513
541
return this ;
@@ -521,6 +549,7 @@ public void setInverseOnSurface(int inverseOnSurface) {
521
549
this .inverseOnSurface = inverseOnSurface ;
522
550
}
523
551
552
+ @ CanIgnoreReturnValue
524
553
public Scheme withInverseOnSurface (int inverseOnSurface ) {
525
554
this .inverseOnSurface = inverseOnSurface ;
526
555
return this ;
@@ -534,6 +563,7 @@ public void setInversePrimary(int inversePrimary) {
534
563
this .inversePrimary = inversePrimary ;
535
564
}
536
565
566
+ @ CanIgnoreReturnValue
537
567
public Scheme withInversePrimary (int inversePrimary ) {
538
568
this .inversePrimary = inversePrimary ;
539
569
return this ;
0 commit comments