Class ImmutableGlobalIconTheme.Builder
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.icontheme.ImmutableGlobalIconTheme.Builder
- Enclosing class:
- ImmutableGlobalIconTheme
Builds instances of type
ImmutableGlobalIconTheme
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newImmutableGlobalIconTheme
.from
(GlobalIconTheme instance) Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.icontheme.GlobalIconTheme
instance.Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
instance.Initializes the value for thecolor1
attribute.Initializes the value for thecolor2
attribute.Initializes the value for thecolor3
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.icontheme.GlobalIconTheme
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setColor1
Initializes the value for thecolor1
attribute.- Parameters:
color1
- The value for color1- Returns:
this
builder for use in a chained invocation
-
setColor2
Initializes the value for thecolor2
attribute.- Parameters:
color2
- The value for color2- Returns:
this
builder for use in a chained invocation
-
setColor3
Initializes the value for thecolor3
attribute.- Parameters:
color3
- The value for color3- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableGlobalIconTheme
.- Returns:
- An immutable instance of GlobalIconTheme
- Throws:
IllegalStateException
- if any required attributes are missing
-