@NotThreadSafe public static final class ImmutableIconTheme.Builder extends Object
ImmutableIconTheme
.
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 |
---|---|
ImmutableIconTheme |
build()
Builds a new
ImmutableIconTheme . |
ImmutableIconTheme.Builder |
from(IconTheme instance)
Fill a builder with attribute values from the provided
IconTheme instance. |
ImmutableIconTheme.Builder |
setColor1(String color1)
Initializes the value for the
color1 attribute. |
ImmutableIconTheme.Builder |
setColor2(String color2)
Initializes the value for the
color2 attribute. |
ImmutableIconTheme.Builder |
setColor3(String color3)
Initializes the value for the
color3 attribute. |
@CanIgnoreReturnValue public final ImmutableIconTheme.Builder from(IconTheme instance)
IconTheme
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableIconTheme.Builder setColor1(String color1)
color1
attribute.color1
- The value for color1this
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableIconTheme.Builder setColor2(String color2)
color2
attribute.color2
- The value for color2this
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableIconTheme.Builder setColor3(String color3)
color3
attribute.color3
- The value for color3this
builder for use in a chained invocationpublic ImmutableIconTheme build()
ImmutableIconTheme
.IllegalStateException
- if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.