@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIconTheme extends IconTheme
IconTheme
.
Use the builder to create immutable instances:
ImmutableIconTheme.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableIconTheme.Builder
Builds instances of type
ImmutableIconTheme . |
IconTheme.DefaultColors
hexColorRegexPattern
Modifier and Type | Method and Description |
---|---|
static ImmutableIconTheme.Builder |
builder()
Creates a builder for
ImmutableIconTheme . |
String |
color1() |
String |
color2() |
String |
color3() |
static ImmutableIconTheme |
copyOf(IconTheme instance)
Creates an immutable copy of a
IconTheme value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableIconTheme that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
color1 , color2 , color3 . |
String |
toString()
Prints the immutable value
IconTheme with attribute values. |
ImmutableIconTheme |
withColor1(String value)
Copy the current immutable object by setting a value for the
color1 attribute. |
ImmutableIconTheme |
withColor2(String value)
Copy the current immutable object by setting a value for the
color2 attribute. |
ImmutableIconTheme |
withColor3(String value)
Copy the current immutable object by setting a value for the
color3 attribute. |
colorThemeHash
public String color1()
public String color2()
public String color3()
public final ImmutableIconTheme withColor1(String value)
color1
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for color1this
objectpublic final ImmutableIconTheme withColor2(String value)
color2
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for color2this
objectpublic final ImmutableIconTheme withColor3(String value)
color3
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for color3this
objectpublic boolean equals(@Nullable Object another)
ImmutableIconTheme
that have equal attribute values.public int hashCode()
color1
, color2
, color3
.public String toString()
IconTheme
with attribute values.public static ImmutableIconTheme copyOf(IconTheme instance)
IconTheme
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableIconTheme.Builder builder()
ImmutableIconTheme
.
ImmutableIconTheme.builder() .setColor1(String) // requiredcolor1
.setColor2(String) // requiredcolor2
.setColor3(String) // requiredcolor3
.build();
Copyright © 2023 Atlassian. All rights reserved.