Class ImmutableGlobalIconTheme
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
com.riadalabs.jira.plugins.insight.services.model.icontheme.GlobalIconTheme
com.riadalabs.jira.plugins.insight.services.model.icontheme.ImmutableGlobalIconTheme
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGlobalIconTheme
extends GlobalIconTheme
Immutable implementation of
GlobalIconTheme
.
Use the builder to create immutable instances:
ImmutableGlobalIconTheme.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableGlobalIconTheme
.Nested 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 TypeMethodDescriptionbuilder()
Creates a builder forImmutableGlobalIconTheme
.color1()
color2()
color3()
static ImmutableGlobalIconTheme
copyOf
(GlobalIconTheme instance) Creates an immutable copy of aGlobalIconTheme
value.boolean
This instance is equal to all instances ofImmutableGlobalIconTheme
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:color1
,color2
,color3
.toString()
Prints the immutable valueGlobalIconTheme
with attribute values.final ImmutableGlobalIconTheme
withColor1
(String value) Copy the current immutable object by setting a value for thecolor1
attribute.final ImmutableGlobalIconTheme
withColor2
(String value) Copy the current immutable object by setting a value for thecolor2
attribute.final ImmutableGlobalIconTheme
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 ofImmutableGlobalIconTheme
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:color1
,color2
,color3
. -
toString
Prints the immutable valueGlobalIconTheme
with attribute values. -
copyOf
Creates an immutable copy of aGlobalIconTheme
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 GlobalIconTheme instance
-
builder
Creates a builder forImmutableGlobalIconTheme
.ImmutableGlobalIconTheme.builder() .setColor1(String) // required
color1
.setColor2(String) // requiredcolor2
.setColor3(String) // requiredcolor3
.build();- Returns:
- A new ImmutableGlobalIconTheme builder
-