@NotThreadSafe public static final class ImmutableObjectNode.Builder extends Object
ImmutableObjectNode.
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 |
|---|---|
ImmutableObjectNode |
build()
Builds a new
ImmutableObjectNode. |
ImmutableObjectNode.Builder |
from(Node instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.Node instance. |
ImmutableObjectNode.Builder |
from(ObjectNode instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.ObjectNode instance. |
ImmutableObjectNode.Builder |
setAvatar(AvatarBean avatar)
Initializes the value for the
avatar attribute. |
ImmutableObjectNode.Builder |
setCanCreateReference(boolean canCreateReference)
Initializes the value for the
canCreateReference attribute. |
ImmutableObjectNode.Builder |
setDepth(int depth)
Initializes the value for the
depth attribute. |
ImmutableObjectNode.Builder |
setExpanded(boolean expanded)
Initializes the value for the
expanded attribute. |
ImmutableObjectNode.Builder |
setId(int id)
Initializes the value for the
id attribute. |
ImmutableObjectNode.Builder |
setObject(ObjectBean object)
Initializes the value for the
object attribute. |
ImmutableObjectNode.Builder |
setObjectTypeAttributeId(Integer objectTypeAttributeId)
Initializes the value for the
objectTypeAttributeId attribute. |
@CanIgnoreReturnValue public final ImmutableObjectNode.Builder from(ObjectNode instance)
com.riadalabs.jira.plugins.insight.services.model.graph.ObjectNode instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder from(Node instance)
com.riadalabs.jira.plugins.insight.services.model.graph.Node instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setId(int id)
id attribute.id - The value for idthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setCanCreateReference(boolean canCreateReference)
canCreateReference attribute.canCreateReference - The value for canCreateReferencethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setDepth(int depth)
depth attribute.depth - The value for depththis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setExpanded(boolean expanded)
expanded attribute.expanded - The value for expandedthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setObject(ObjectBean object)
object attribute.object - The value for objectthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setAvatar(AvatarBean avatar)
avatar attribute.avatar - The value for avatarthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setObjectTypeAttributeId(@Nullable Integer objectTypeAttributeId)
objectTypeAttributeId attribute.objectTypeAttributeId - The value for objectTypeAttributeId (can be null)this builder for use in a chained invocationpublic ImmutableObjectNode build()
ImmutableObjectNode.IllegalStateException - if any required attributes are missingCopyright © 2023 Atlassian. All rights reserved.