1 /* 2 * Copyright 2021 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // This file is automatically generated. Do not modify it. 18 19 package com.google.ux.material.libmonet.scheme; 20 21 import com.google.errorprone.annotations.CanIgnoreReturnValue; 22 import com.google.errorprone.annotations.CheckReturnValue; 23 import com.google.ux.material.libmonet.palettes.CorePalette; 24 25 /** 26 * Represents a Material color scheme, a mapping of color roles to colors. 27 * 28 * @deprecated Please use com.google.ux.material.libmonet.dynamiccolor.DynamicScheme instead. Refer 29 * to https://github.com/material-foundation/material-color-utilities/blob/main/make_schemes.md 30 * for migration guidance. 31 */ 32 @Deprecated 33 @CheckReturnValue 34 public class Scheme { 35 private int primary; 36 private int onPrimary; 37 private int primaryContainer; 38 private int onPrimaryContainer; 39 private int secondary; 40 private int onSecondary; 41 private int secondaryContainer; 42 private int onSecondaryContainer; 43 private int tertiary; 44 private int onTertiary; 45 private int tertiaryContainer; 46 private int onTertiaryContainer; 47 private int error; 48 private int onError; 49 private int errorContainer; 50 private int onErrorContainer; 51 private int background; 52 private int onBackground; 53 private int surface; 54 private int onSurface; 55 private int surfaceVariant; 56 private int onSurfaceVariant; 57 private int outline; 58 private int outlineVariant; 59 private int shadow; 60 private int scrim; 61 private int inverseSurface; 62 private int inverseOnSurface; 63 private int inversePrimary; 64 Scheme()65 public Scheme() {} 66 Scheme( int primary, int onPrimary, int primaryContainer, int onPrimaryContainer, int secondary, int onSecondary, int secondaryContainer, int onSecondaryContainer, int tertiary, int onTertiary, int tertiaryContainer, int onTertiaryContainer, int error, int onError, int errorContainer, int onErrorContainer, int background, int onBackground, int surface, int onSurface, int surfaceVariant, int onSurfaceVariant, int outline, int outlineVariant, int shadow, int scrim, int inverseSurface, int inverseOnSurface, int inversePrimary)67 public Scheme( 68 int primary, 69 int onPrimary, 70 int primaryContainer, 71 int onPrimaryContainer, 72 int secondary, 73 int onSecondary, 74 int secondaryContainer, 75 int onSecondaryContainer, 76 int tertiary, 77 int onTertiary, 78 int tertiaryContainer, 79 int onTertiaryContainer, 80 int error, 81 int onError, 82 int errorContainer, 83 int onErrorContainer, 84 int background, 85 int onBackground, 86 int surface, 87 int onSurface, 88 int surfaceVariant, 89 int onSurfaceVariant, 90 int outline, 91 int outlineVariant, 92 int shadow, 93 int scrim, 94 int inverseSurface, 95 int inverseOnSurface, 96 int inversePrimary) { 97 super(); 98 this.primary = primary; 99 this.onPrimary = onPrimary; 100 this.primaryContainer = primaryContainer; 101 this.onPrimaryContainer = onPrimaryContainer; 102 this.secondary = secondary; 103 this.onSecondary = onSecondary; 104 this.secondaryContainer = secondaryContainer; 105 this.onSecondaryContainer = onSecondaryContainer; 106 this.tertiary = tertiary; 107 this.onTertiary = onTertiary; 108 this.tertiaryContainer = tertiaryContainer; 109 this.onTertiaryContainer = onTertiaryContainer; 110 this.error = error; 111 this.onError = onError; 112 this.errorContainer = errorContainer; 113 this.onErrorContainer = onErrorContainer; 114 this.background = background; 115 this.onBackground = onBackground; 116 this.surface = surface; 117 this.onSurface = onSurface; 118 this.surfaceVariant = surfaceVariant; 119 this.onSurfaceVariant = onSurfaceVariant; 120 this.outline = outline; 121 this.outlineVariant = outlineVariant; 122 this.shadow = shadow; 123 this.scrim = scrim; 124 this.inverseSurface = inverseSurface; 125 this.inverseOnSurface = inverseOnSurface; 126 this.inversePrimary = inversePrimary; 127 } 128 129 /** Creates a light theme Scheme from a source color in ARGB, i.e. a hex code. */ light(int argb)130 public static Scheme light(int argb) { 131 return lightFromCorePalette(CorePalette.of(argb)); 132 } 133 134 /** Creates a dark theme Scheme from a source color in ARGB, i.e. a hex code. */ dark(int argb)135 public static Scheme dark(int argb) { 136 return darkFromCorePalette(CorePalette.of(argb)); 137 } 138 139 /** Creates a light theme content-based Scheme from a source color in ARGB, i.e. a hex code. */ lightContent(int argb)140 public static Scheme lightContent(int argb) { 141 return lightFromCorePalette(CorePalette.contentOf(argb)); 142 } 143 144 /** Creates a dark theme content-based Scheme from a source color in ARGB, i.e. a hex code. */ darkContent(int argb)145 public static Scheme darkContent(int argb) { 146 return darkFromCorePalette(CorePalette.contentOf(argb)); 147 } 148 lightFromCorePalette(CorePalette core)149 private static Scheme lightFromCorePalette(CorePalette core) { 150 return new Scheme() 151 .withPrimary(core.a1.tone(40)) 152 .withOnPrimary(core.a1.tone(100)) 153 .withPrimaryContainer(core.a1.tone(90)) 154 .withOnPrimaryContainer(core.a1.tone(10)) 155 .withSecondary(core.a2.tone(40)) 156 .withOnSecondary(core.a2.tone(100)) 157 .withSecondaryContainer(core.a2.tone(90)) 158 .withOnSecondaryContainer(core.a2.tone(10)) 159 .withTertiary(core.a3.tone(40)) 160 .withOnTertiary(core.a3.tone(100)) 161 .withTertiaryContainer(core.a3.tone(90)) 162 .withOnTertiaryContainer(core.a3.tone(10)) 163 .withError(core.error.tone(40)) 164 .withOnError(core.error.tone(100)) 165 .withErrorContainer(core.error.tone(90)) 166 .withOnErrorContainer(core.error.tone(10)) 167 .withBackground(core.n1.tone(99)) 168 .withOnBackground(core.n1.tone(10)) 169 .withSurface(core.n1.tone(99)) 170 .withOnSurface(core.n1.tone(10)) 171 .withSurfaceVariant(core.n2.tone(90)) 172 .withOnSurfaceVariant(core.n2.tone(30)) 173 .withOutline(core.n2.tone(50)) 174 .withOutlineVariant(core.n2.tone(80)) 175 .withShadow(core.n1.tone(0)) 176 .withScrim(core.n1.tone(0)) 177 .withInverseSurface(core.n1.tone(20)) 178 .withInverseOnSurface(core.n1.tone(95)) 179 .withInversePrimary(core.a1.tone(80)); 180 } 181 darkFromCorePalette(CorePalette core)182 private static Scheme darkFromCorePalette(CorePalette core) { 183 return new Scheme() 184 .withPrimary(core.a1.tone(80)) 185 .withOnPrimary(core.a1.tone(20)) 186 .withPrimaryContainer(core.a1.tone(30)) 187 .withOnPrimaryContainer(core.a1.tone(90)) 188 .withSecondary(core.a2.tone(80)) 189 .withOnSecondary(core.a2.tone(20)) 190 .withSecondaryContainer(core.a2.tone(30)) 191 .withOnSecondaryContainer(core.a2.tone(90)) 192 .withTertiary(core.a3.tone(80)) 193 .withOnTertiary(core.a3.tone(20)) 194 .withTertiaryContainer(core.a3.tone(30)) 195 .withOnTertiaryContainer(core.a3.tone(90)) 196 .withError(core.error.tone(80)) 197 .withOnError(core.error.tone(20)) 198 .withErrorContainer(core.error.tone(30)) 199 .withOnErrorContainer(core.error.tone(80)) 200 .withBackground(core.n1.tone(10)) 201 .withOnBackground(core.n1.tone(90)) 202 .withSurface(core.n1.tone(10)) 203 .withOnSurface(core.n1.tone(90)) 204 .withSurfaceVariant(core.n2.tone(30)) 205 .withOnSurfaceVariant(core.n2.tone(80)) 206 .withOutline(core.n2.tone(60)) 207 .withOutlineVariant(core.n2.tone(30)) 208 .withShadow(core.n1.tone(0)) 209 .withScrim(core.n1.tone(0)) 210 .withInverseSurface(core.n1.tone(90)) 211 .withInverseOnSurface(core.n1.tone(20)) 212 .withInversePrimary(core.a1.tone(40)); 213 } 214 getPrimary()215 public int getPrimary() { 216 return primary; 217 } 218 setPrimary(int primary)219 public void setPrimary(int primary) { 220 this.primary = primary; 221 } 222 223 @CanIgnoreReturnValue withPrimary(int primary)224 public Scheme withPrimary(int primary) { 225 this.primary = primary; 226 return this; 227 } 228 getOnPrimary()229 public int getOnPrimary() { 230 return onPrimary; 231 } 232 setOnPrimary(int onPrimary)233 public void setOnPrimary(int onPrimary) { 234 this.onPrimary = onPrimary; 235 } 236 237 @CanIgnoreReturnValue withOnPrimary(int onPrimary)238 public Scheme withOnPrimary(int onPrimary) { 239 this.onPrimary = onPrimary; 240 return this; 241 } 242 getPrimaryContainer()243 public int getPrimaryContainer() { 244 return primaryContainer; 245 } 246 setPrimaryContainer(int primaryContainer)247 public void setPrimaryContainer(int primaryContainer) { 248 this.primaryContainer = primaryContainer; 249 } 250 251 @CanIgnoreReturnValue withPrimaryContainer(int primaryContainer)252 public Scheme withPrimaryContainer(int primaryContainer) { 253 this.primaryContainer = primaryContainer; 254 return this; 255 } 256 getOnPrimaryContainer()257 public int getOnPrimaryContainer() { 258 return onPrimaryContainer; 259 } 260 setOnPrimaryContainer(int onPrimaryContainer)261 public void setOnPrimaryContainer(int onPrimaryContainer) { 262 this.onPrimaryContainer = onPrimaryContainer; 263 } 264 265 @CanIgnoreReturnValue withOnPrimaryContainer(int onPrimaryContainer)266 public Scheme withOnPrimaryContainer(int onPrimaryContainer) { 267 this.onPrimaryContainer = onPrimaryContainer; 268 return this; 269 } 270 getSecondary()271 public int getSecondary() { 272 return secondary; 273 } 274 setSecondary(int secondary)275 public void setSecondary(int secondary) { 276 this.secondary = secondary; 277 } 278 279 @CanIgnoreReturnValue withSecondary(int secondary)280 public Scheme withSecondary(int secondary) { 281 this.secondary = secondary; 282 return this; 283 } 284 getOnSecondary()285 public int getOnSecondary() { 286 return onSecondary; 287 } 288 setOnSecondary(int onSecondary)289 public void setOnSecondary(int onSecondary) { 290 this.onSecondary = onSecondary; 291 } 292 293 @CanIgnoreReturnValue withOnSecondary(int onSecondary)294 public Scheme withOnSecondary(int onSecondary) { 295 this.onSecondary = onSecondary; 296 return this; 297 } 298 getSecondaryContainer()299 public int getSecondaryContainer() { 300 return secondaryContainer; 301 } 302 setSecondaryContainer(int secondaryContainer)303 public void setSecondaryContainer(int secondaryContainer) { 304 this.secondaryContainer = secondaryContainer; 305 } 306 307 @CanIgnoreReturnValue withSecondaryContainer(int secondaryContainer)308 public Scheme withSecondaryContainer(int secondaryContainer) { 309 this.secondaryContainer = secondaryContainer; 310 return this; 311 } 312 getOnSecondaryContainer()313 public int getOnSecondaryContainer() { 314 return onSecondaryContainer; 315 } 316 setOnSecondaryContainer(int onSecondaryContainer)317 public void setOnSecondaryContainer(int onSecondaryContainer) { 318 this.onSecondaryContainer = onSecondaryContainer; 319 } 320 321 @CanIgnoreReturnValue withOnSecondaryContainer(int onSecondaryContainer)322 public Scheme withOnSecondaryContainer(int onSecondaryContainer) { 323 this.onSecondaryContainer = onSecondaryContainer; 324 return this; 325 } 326 getTertiary()327 public int getTertiary() { 328 return tertiary; 329 } 330 setTertiary(int tertiary)331 public void setTertiary(int tertiary) { 332 this.tertiary = tertiary; 333 } 334 335 @CanIgnoreReturnValue withTertiary(int tertiary)336 public Scheme withTertiary(int tertiary) { 337 this.tertiary = tertiary; 338 return this; 339 } 340 getOnTertiary()341 public int getOnTertiary() { 342 return onTertiary; 343 } 344 setOnTertiary(int onTertiary)345 public void setOnTertiary(int onTertiary) { 346 this.onTertiary = onTertiary; 347 } 348 349 @CanIgnoreReturnValue withOnTertiary(int onTertiary)350 public Scheme withOnTertiary(int onTertiary) { 351 this.onTertiary = onTertiary; 352 return this; 353 } 354 getTertiaryContainer()355 public int getTertiaryContainer() { 356 return tertiaryContainer; 357 } 358 setTertiaryContainer(int tertiaryContainer)359 public void setTertiaryContainer(int tertiaryContainer) { 360 this.tertiaryContainer = tertiaryContainer; 361 } 362 363 @CanIgnoreReturnValue withTertiaryContainer(int tertiaryContainer)364 public Scheme withTertiaryContainer(int tertiaryContainer) { 365 this.tertiaryContainer = tertiaryContainer; 366 return this; 367 } 368 getOnTertiaryContainer()369 public int getOnTertiaryContainer() { 370 return onTertiaryContainer; 371 } 372 setOnTertiaryContainer(int onTertiaryContainer)373 public void setOnTertiaryContainer(int onTertiaryContainer) { 374 this.onTertiaryContainer = onTertiaryContainer; 375 } 376 377 @CanIgnoreReturnValue withOnTertiaryContainer(int onTertiaryContainer)378 public Scheme withOnTertiaryContainer(int onTertiaryContainer) { 379 this.onTertiaryContainer = onTertiaryContainer; 380 return this; 381 } 382 getError()383 public int getError() { 384 return error; 385 } 386 setError(int error)387 public void setError(int error) { 388 this.error = error; 389 } 390 391 @CanIgnoreReturnValue withError(int error)392 public Scheme withError(int error) { 393 this.error = error; 394 return this; 395 } 396 getOnError()397 public int getOnError() { 398 return onError; 399 } 400 setOnError(int onError)401 public void setOnError(int onError) { 402 this.onError = onError; 403 } 404 405 @CanIgnoreReturnValue withOnError(int onError)406 public Scheme withOnError(int onError) { 407 this.onError = onError; 408 return this; 409 } 410 getErrorContainer()411 public int getErrorContainer() { 412 return errorContainer; 413 } 414 setErrorContainer(int errorContainer)415 public void setErrorContainer(int errorContainer) { 416 this.errorContainer = errorContainer; 417 } 418 419 @CanIgnoreReturnValue withErrorContainer(int errorContainer)420 public Scheme withErrorContainer(int errorContainer) { 421 this.errorContainer = errorContainer; 422 return this; 423 } 424 getOnErrorContainer()425 public int getOnErrorContainer() { 426 return onErrorContainer; 427 } 428 setOnErrorContainer(int onErrorContainer)429 public void setOnErrorContainer(int onErrorContainer) { 430 this.onErrorContainer = onErrorContainer; 431 } 432 433 @CanIgnoreReturnValue withOnErrorContainer(int onErrorContainer)434 public Scheme withOnErrorContainer(int onErrorContainer) { 435 this.onErrorContainer = onErrorContainer; 436 return this; 437 } 438 getBackground()439 public int getBackground() { 440 return background; 441 } 442 setBackground(int background)443 public void setBackground(int background) { 444 this.background = background; 445 } 446 447 @CanIgnoreReturnValue withBackground(int background)448 public Scheme withBackground(int background) { 449 this.background = background; 450 return this; 451 } 452 getOnBackground()453 public int getOnBackground() { 454 return onBackground; 455 } 456 setOnBackground(int onBackground)457 public void setOnBackground(int onBackground) { 458 this.onBackground = onBackground; 459 } 460 461 @CanIgnoreReturnValue withOnBackground(int onBackground)462 public Scheme withOnBackground(int onBackground) { 463 this.onBackground = onBackground; 464 return this; 465 } 466 getSurface()467 public int getSurface() { 468 return surface; 469 } 470 setSurface(int surface)471 public void setSurface(int surface) { 472 this.surface = surface; 473 } 474 475 @CanIgnoreReturnValue withSurface(int surface)476 public Scheme withSurface(int surface) { 477 this.surface = surface; 478 return this; 479 } 480 getOnSurface()481 public int getOnSurface() { 482 return onSurface; 483 } 484 setOnSurface(int onSurface)485 public void setOnSurface(int onSurface) { 486 this.onSurface = onSurface; 487 } 488 489 @CanIgnoreReturnValue withOnSurface(int onSurface)490 public Scheme withOnSurface(int onSurface) { 491 this.onSurface = onSurface; 492 return this; 493 } 494 getSurfaceVariant()495 public int getSurfaceVariant() { 496 return surfaceVariant; 497 } 498 setSurfaceVariant(int surfaceVariant)499 public void setSurfaceVariant(int surfaceVariant) { 500 this.surfaceVariant = surfaceVariant; 501 } 502 503 @CanIgnoreReturnValue withSurfaceVariant(int surfaceVariant)504 public Scheme withSurfaceVariant(int surfaceVariant) { 505 this.surfaceVariant = surfaceVariant; 506 return this; 507 } 508 getOnSurfaceVariant()509 public int getOnSurfaceVariant() { 510 return onSurfaceVariant; 511 } 512 setOnSurfaceVariant(int onSurfaceVariant)513 public void setOnSurfaceVariant(int onSurfaceVariant) { 514 this.onSurfaceVariant = onSurfaceVariant; 515 } 516 517 @CanIgnoreReturnValue withOnSurfaceVariant(int onSurfaceVariant)518 public Scheme withOnSurfaceVariant(int onSurfaceVariant) { 519 this.onSurfaceVariant = onSurfaceVariant; 520 return this; 521 } 522 getOutline()523 public int getOutline() { 524 return outline; 525 } 526 setOutline(int outline)527 public void setOutline(int outline) { 528 this.outline = outline; 529 } 530 531 @CanIgnoreReturnValue withOutline(int outline)532 public Scheme withOutline(int outline) { 533 this.outline = outline; 534 return this; 535 } 536 getOutlineVariant()537 public int getOutlineVariant() { 538 return outlineVariant; 539 } 540 setOutlineVariant(int outlineVariant)541 public void setOutlineVariant(int outlineVariant) { 542 this.outlineVariant = outlineVariant; 543 } 544 545 @CanIgnoreReturnValue withOutlineVariant(int outlineVariant)546 public Scheme withOutlineVariant(int outlineVariant) { 547 this.outlineVariant = outlineVariant; 548 return this; 549 } 550 getShadow()551 public int getShadow() { 552 return shadow; 553 } 554 setShadow(int shadow)555 public void setShadow(int shadow) { 556 this.shadow = shadow; 557 } 558 559 @CanIgnoreReturnValue withShadow(int shadow)560 public Scheme withShadow(int shadow) { 561 this.shadow = shadow; 562 return this; 563 } 564 getScrim()565 public int getScrim() { 566 return scrim; 567 } 568 setScrim(int scrim)569 public void setScrim(int scrim) { 570 this.scrim = scrim; 571 } 572 573 @CanIgnoreReturnValue withScrim(int scrim)574 public Scheme withScrim(int scrim) { 575 this.scrim = scrim; 576 return this; 577 } 578 getInverseSurface()579 public int getInverseSurface() { 580 return inverseSurface; 581 } 582 setInverseSurface(int inverseSurface)583 public void setInverseSurface(int inverseSurface) { 584 this.inverseSurface = inverseSurface; 585 } 586 587 @CanIgnoreReturnValue withInverseSurface(int inverseSurface)588 public Scheme withInverseSurface(int inverseSurface) { 589 this.inverseSurface = inverseSurface; 590 return this; 591 } 592 getInverseOnSurface()593 public int getInverseOnSurface() { 594 return inverseOnSurface; 595 } 596 setInverseOnSurface(int inverseOnSurface)597 public void setInverseOnSurface(int inverseOnSurface) { 598 this.inverseOnSurface = inverseOnSurface; 599 } 600 601 @CanIgnoreReturnValue withInverseOnSurface(int inverseOnSurface)602 public Scheme withInverseOnSurface(int inverseOnSurface) { 603 this.inverseOnSurface = inverseOnSurface; 604 return this; 605 } 606 getInversePrimary()607 public int getInversePrimary() { 608 return inversePrimary; 609 } 610 setInversePrimary(int inversePrimary)611 public void setInversePrimary(int inversePrimary) { 612 this.inversePrimary = inversePrimary; 613 } 614 615 @CanIgnoreReturnValue withInversePrimary(int inversePrimary)616 public Scheme withInversePrimary(int inversePrimary) { 617 this.inversePrimary = inversePrimary; 618 return this; 619 } 620 621 @Override toString()622 public String toString() { 623 return "Scheme{" 624 + "primary=" 625 + primary 626 + ", onPrimary=" 627 + onPrimary 628 + ", primaryContainer=" 629 + primaryContainer 630 + ", onPrimaryContainer=" 631 + onPrimaryContainer 632 + ", secondary=" 633 + secondary 634 + ", onSecondary=" 635 + onSecondary 636 + ", secondaryContainer=" 637 + secondaryContainer 638 + ", onSecondaryContainer=" 639 + onSecondaryContainer 640 + ", tertiary=" 641 + tertiary 642 + ", onTertiary=" 643 + onTertiary 644 + ", tertiaryContainer=" 645 + tertiaryContainer 646 + ", onTertiaryContainer=" 647 + onTertiaryContainer 648 + ", error=" 649 + error 650 + ", onError=" 651 + onError 652 + ", errorContainer=" 653 + errorContainer 654 + ", onErrorContainer=" 655 + onErrorContainer 656 + ", background=" 657 + background 658 + ", onBackground=" 659 + onBackground 660 + ", surface=" 661 + surface 662 + ", onSurface=" 663 + onSurface 664 + ", surfaceVariant=" 665 + surfaceVariant 666 + ", onSurfaceVariant=" 667 + onSurfaceVariant 668 + ", outline=" 669 + outline 670 + ", outlineVariant=" 671 + outlineVariant 672 + ", shadow=" 673 + shadow 674 + ", scrim=" 675 + scrim 676 + ", inverseSurface=" 677 + inverseSurface 678 + ", inverseOnSurface=" 679 + inverseOnSurface 680 + ", inversePrimary=" 681 + inversePrimary 682 + '}'; 683 } 684 685 @Override equals(Object object)686 public boolean equals(Object object) { 687 if (this == object) { 688 return true; 689 } 690 if (!(object instanceof Scheme)) { 691 return false; 692 } 693 694 Scheme scheme = (Scheme) object; 695 696 if (primary != scheme.primary) { 697 return false; 698 } 699 if (onPrimary != scheme.onPrimary) { 700 return false; 701 } 702 if (primaryContainer != scheme.primaryContainer) { 703 return false; 704 } 705 if (onPrimaryContainer != scheme.onPrimaryContainer) { 706 return false; 707 } 708 if (secondary != scheme.secondary) { 709 return false; 710 } 711 if (onSecondary != scheme.onSecondary) { 712 return false; 713 } 714 if (secondaryContainer != scheme.secondaryContainer) { 715 return false; 716 } 717 if (onSecondaryContainer != scheme.onSecondaryContainer) { 718 return false; 719 } 720 if (tertiary != scheme.tertiary) { 721 return false; 722 } 723 if (onTertiary != scheme.onTertiary) { 724 return false; 725 } 726 if (tertiaryContainer != scheme.tertiaryContainer) { 727 return false; 728 } 729 if (onTertiaryContainer != scheme.onTertiaryContainer) { 730 return false; 731 } 732 if (error != scheme.error) { 733 return false; 734 } 735 if (onError != scheme.onError) { 736 return false; 737 } 738 if (errorContainer != scheme.errorContainer) { 739 return false; 740 } 741 if (onErrorContainer != scheme.onErrorContainer) { 742 return false; 743 } 744 if (background != scheme.background) { 745 return false; 746 } 747 if (onBackground != scheme.onBackground) { 748 return false; 749 } 750 if (surface != scheme.surface) { 751 return false; 752 } 753 if (onSurface != scheme.onSurface) { 754 return false; 755 } 756 if (surfaceVariant != scheme.surfaceVariant) { 757 return false; 758 } 759 if (onSurfaceVariant != scheme.onSurfaceVariant) { 760 return false; 761 } 762 if (outline != scheme.outline) { 763 return false; 764 } 765 if (outlineVariant != scheme.outlineVariant) { 766 return false; 767 } 768 if (shadow != scheme.shadow) { 769 return false; 770 } 771 if (scrim != scheme.scrim) { 772 return false; 773 } 774 if (inverseSurface != scheme.inverseSurface) { 775 return false; 776 } 777 if (inverseOnSurface != scheme.inverseOnSurface) { 778 return false; 779 } 780 if (inversePrimary != scheme.inversePrimary) { 781 return false; 782 } 783 784 return true; 785 } 786 787 @Override hashCode()788 public int hashCode() { 789 int result = System.identityHashCode(this); 790 result = 31 * result + primary; 791 result = 31 * result + onPrimary; 792 result = 31 * result + primaryContainer; 793 result = 31 * result + onPrimaryContainer; 794 result = 31 * result + secondary; 795 result = 31 * result + onSecondary; 796 result = 31 * result + secondaryContainer; 797 result = 31 * result + onSecondaryContainer; 798 result = 31 * result + tertiary; 799 result = 31 * result + onTertiary; 800 result = 31 * result + tertiaryContainer; 801 result = 31 * result + onTertiaryContainer; 802 result = 31 * result + error; 803 result = 31 * result + onError; 804 result = 31 * result + errorContainer; 805 result = 31 * result + onErrorContainer; 806 result = 31 * result + background; 807 result = 31 * result + onBackground; 808 result = 31 * result + surface; 809 result = 31 * result + onSurface; 810 result = 31 * result + surfaceVariant; 811 result = 31 * result + onSurfaceVariant; 812 result = 31 * result + outline; 813 result = 31 * result + outlineVariant; 814 result = 31 * result + shadow; 815 result = 31 * result + scrim; 816 result = 31 * result + inverseSurface; 817 result = 31 * result + inverseOnSurface; 818 result = 31 * result + inversePrimary; 819 return result; 820 } 821 } 822