@NotThreadSafe public static final class ImmutableObjectTypeNode.Builder extends Object
ImmutableObjectTypeNode.
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 |
|---|---|
ImmutableObjectTypeNode |
build()
Builds a new
ImmutableObjectTypeNode. |
ImmutableObjectTypeNode.Builder |
from(Node instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.Node instance. |
ImmutableObjectTypeNode.Builder |
from(ObjectTypeNode instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.ObjectTypeNode instance. |
ImmutableObjectTypeNode.Builder |
setCanCreateReference(boolean canCreateReference)
Initializes the value for the
canCreateReference attribute. |
ImmutableObjectTypeNode.Builder |
setDepth(int depth)
Initializes the value for the
depth attribute. |
ImmutableObjectTypeNode.Builder |
setExpanded(boolean expanded)
Initializes the value for the
expanded attribute. |
ImmutableObjectTypeNode.Builder |
setIcon(IconBean icon)
Initializes the value for the
icon attribute. |
ImmutableObjectTypeNode.Builder |
setId(int id)
Initializes the value for the
id attribute. |
ImmutableObjectTypeNode.Builder |
setObjectCount(Integer objectCount)
Initializes the value for the
objectCount attribute. |
ImmutableObjectTypeNode.Builder |
setObjectType(ObjectTypeBean objectType)
Initializes the value for the
objectType attribute. |
ImmutableObjectTypeNode.Builder |
setParentId(Integer parentId)
Initializes the value for the
parentId attribute. |
@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder from(ObjectTypeNode instance)
com.riadalabs.jira.plugins.insight.services.model.graph.ObjectTypeNode instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.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 ImmutableObjectTypeNode.Builder setId(int id)
id attribute.id - The value for idthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder setCanCreateReference(boolean canCreateReference)
canCreateReference attribute.canCreateReference - The value for canCreateReferencethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder setDepth(int depth)
depth attribute.depth - The value for depththis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder setExpanded(boolean expanded)
expanded attribute.expanded - The value for expandedthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder setObjectType(ObjectTypeBean objectType)
objectType attribute.objectType - The value for objectTypethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder setParentId(@Nullable Integer parentId)
parentId attribute.parentId - The value for parentId (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder setObjectCount(Integer objectCount)
objectCount attribute.objectCount - The value for objectCountthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableObjectTypeNode.Builder setIcon(IconBean icon)
icon attribute.icon - The value for iconthis builder for use in a chained invocationpublic ImmutableObjectTypeNode build()
ImmutableObjectTypeNode.IllegalStateException - if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.