@NotThreadSafe public static final class ImmutableGlobalIconTheme.Builder extends Object
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.
Modifier and Type | Method and Description |
---|---|
ImmutableGlobalIconTheme |
build()
Builds a new
ImmutableGlobalIconTheme . |
ImmutableGlobalIconTheme.Builder |
from(GlobalIconTheme instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.icontheme.GlobalIconTheme instance. |
ImmutableGlobalIconTheme.Builder |
from(IconTheme instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme instance. |
ImmutableGlobalIconTheme.Builder |
setColor1(String color1)
Initializes the value for the
color1 attribute. |
ImmutableGlobalIconTheme.Builder |
setColor2(String color2)
Initializes the value for the
color2 attribute. |
ImmutableGlobalIconTheme.Builder |
setColor3(String color3)
Initializes the value for the
color3 attribute. |
@CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder from(IconTheme instance)
com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder from(GlobalIconTheme instance)
com.riadalabs.jira.plugins.insight.services.model.icontheme.GlobalIconTheme
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder setColor1(String color1)
color1
attribute.color1
- The value for color1this
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder setColor2(String color2)
color2
attribute.color2
- The value for color2this
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder setColor3(String color3)
color3
attribute.color3
- The value for color3this
builder for use in a chained invocationpublic ImmutableGlobalIconTheme build()
ImmutableGlobalIconTheme
.IllegalStateException
- if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.