Class ImmutableObjectNode.Builder
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.graph.ImmutableObjectNode.Builder
- Enclosing class:
- ImmutableObjectNode
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableObjectNode.Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.Nodeinstance.from(ObjectNode instance) Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ObjectNodeinstance.setAvatar(AvatarBean avatar) Initializes the value for theavatarattribute.setCanCreateReference(boolean canCreateReference) Initializes the value for thecanCreateReferenceattribute.setDepth(int depth) Initializes the value for thedepthattribute.setExpanded(boolean expanded) Initializes the value for theexpandedattribute.setId(int id) Initializes the value for theidattribute.setObject(ObjectBean object) Initializes the value for theobjectattribute.setObjectTypeAttributeId(Integer objectTypeAttributeId) Initializes the value for theobjectTypeAttributeIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ObjectNodeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.Nodeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
setCanCreateReference
@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setCanCreateReference(boolean canCreateReference) Initializes the value for thecanCreateReferenceattribute.- Parameters:
canCreateReference- The value for canCreateReference- Returns:
thisbuilder for use in a chained invocation
-
setDepth
Initializes the value for thedepthattribute.- Parameters:
depth- The value for depth- Returns:
thisbuilder for use in a chained invocation
-
setExpanded
Initializes the value for theexpandedattribute.- Parameters:
expanded- The value for expanded- Returns:
thisbuilder for use in a chained invocation
-
setObject
Initializes the value for theobjectattribute.- Parameters:
object- The value for object- Returns:
thisbuilder for use in a chained invocation
-
setAvatar
Initializes the value for theavatarattribute.- Parameters:
avatar- The value for avatar- Returns:
thisbuilder for use in a chained invocation
-
setObjectTypeAttributeId
@CanIgnoreReturnValue public final ImmutableObjectNode.Builder setObjectTypeAttributeId(@Nullable Integer objectTypeAttributeId) Initializes the value for theobjectTypeAttributeIdattribute.- Parameters:
objectTypeAttributeId- The value for objectTypeAttributeId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableObjectNode.- Returns:
- An immutable instance of ObjectNode
- Throws:
IllegalStateException- if any required attributes are missing
-