Class ImmutableParentEdge.Builder
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.graph.ImmutableParentEdge.Builder
- Enclosing class:
- ImmutableParentEdge
Builds instances of type
ImmutableParentEdge
.
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 newImmutableParentEdge
.Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.Edge
instance.from
(ParentEdge instance) Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ParentEdge
instance.Initializes the value for thefrom
attribute.setInherited
(boolean inherited) Initializes the value for theinherited
attribute.Initializes the value for thelabel
attribute.Initializes the value for theto
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.Edge
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ParentEdge
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setFrom
Initializes the value for thefrom
attribute.- Parameters:
from
- The value for from- Returns:
this
builder for use in a chained invocation
-
setTo
Initializes the value for theto
attribute.- Parameters:
to
- The value for to- Returns:
this
builder for use in a chained invocation
-
setLabel
Initializes the value for thelabel
attribute.- Parameters:
label
- The value for label- Returns:
this
builder for use in a chained invocation
-
setInherited
Initializes the value for theinherited
attribute.- Parameters:
inherited
- The value for inherited- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableParentEdge
.- Returns:
- An immutable instance of ParentEdge
- Throws:
IllegalStateException
- if any required attributes are missing
-