Class ImmutableIconTheme
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
com.riadalabs.jira.plugins.insight.services.model.icontheme.ImmutableIconTheme
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableIconTheme
extends IconTheme
Immutable implementation of
IconTheme
.
Use the builder to create immutable instances:
ImmutableIconTheme.builder()
.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
IconTheme.DefaultColors
-
Field Summary
Fields inherited from class com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
hexColorRegexPattern
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableIconTheme.Builder
builder()
Creates a builder forImmutableIconTheme
.color1()
color2()
color3()
static ImmutableIconTheme
Creates an immutable copy of aIconTheme
value.boolean
This instance is equal to all instances ofImmutableIconTheme
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:color1
,color2
,color3
.toString()
Prints the immutable valueIconTheme
with attribute values.final ImmutableIconTheme
withColor1
(String value) Copy the current immutable object by setting a value for thecolor1
attribute.final ImmutableIconTheme
withColor2
(String value) Copy the current immutable object by setting a value for thecolor2
attribute.final ImmutableIconTheme
withColor3
(String value) Copy the current immutable object by setting a value for thecolor3
attribute.Methods inherited from class com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
colorThemeHash
-
Method Details
-
color1
-
color2
-
color3
-
withColor1
Copy the current immutable object by setting a value for thecolor1
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for color1- Returns:
- A modified copy of the
this
object
-
withColor2
Copy the current immutable object by setting a value for thecolor2
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for color2- Returns:
- A modified copy of the
this
object
-
withColor3
Copy the current immutable object by setting a value for thecolor3
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for color3- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableIconTheme
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:color1
,color2
,color3
. -
toString
Prints the immutable valueIconTheme
with attribute values. -
copyOf
Creates an immutable copy of aIconTheme
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable IconTheme instance
-
builder
Creates a builder forImmutableIconTheme
.ImmutableIconTheme.builder() .setColor1(String) // required
color1
.setColor2(String) // requiredcolor2
.setColor3(String) // requiredcolor3
.build();- Returns:
- A new ImmutableIconTheme builder
-