Class ImmutableParentEdge
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.graph.Edge
com.riadalabs.jira.plugins.insight.services.model.graph.ParentEdge
com.riadalabs.jira.plugins.insight.services.model.graph.ImmutableParentEdge
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableParentEdge
extends ParentEdge
Immutable implementation of
ParentEdge
.
Use the builder to create immutable instances:
ImmutableParentEdge.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableParentEdge
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableParentEdge.Builder
builder()
Creates a builder forImmutableParentEdge
.static ImmutableParentEdge
copyOf
(ParentEdge instance) Creates an immutable copy of aParentEdge
value.boolean
This instance is equal to all instances ofImmutableParentEdge
that have equal attribute values.from()
int
hashCode()
Computes a hash code from attributes:from
,to
,label
,inherited
.boolean
label()
Describes the label placed on the edge between two nodesto()
toString()
Prints the immutable valueParentEdge
with attribute values.final ImmutableParentEdge
Copy the current immutable object by setting a value for thefrom
attribute.final ImmutableParentEdge
withInherited
(boolean value) Copy the current immutable object by setting a value for theinherited
attribute.final ImmutableParentEdge
Copy the current immutable object by setting a value for thelabel
attribute.final ImmutableParentEdge
Copy the current immutable object by setting a value for theto
attribute.
-
Method Details
-
from
-
to
-
label
Describes the label placed on the edge between two nodes -
isInherited
public boolean isInherited()- Specified by:
isInherited
in classParentEdge
- Returns:
- The value of the
inherited
attribute
-
withFrom
Copy the current immutable object by setting a value for thefrom
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for from- Returns:
- A modified copy of the
this
object
-
withTo
Copy the current immutable object by setting a value for theto
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for to- Returns:
- A modified copy of the
this
object
-
withLabel
Copy the current immutable object by setting a value for thelabel
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for label- Returns:
- A modified copy of the
this
object
-
withInherited
Copy the current immutable object by setting a value for theinherited
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for inherited- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableParentEdge
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:from
,to
,label
,inherited
. -
toString
Prints the immutable valueParentEdge
with attribute values. -
copyOf
Creates an immutable copy of aParentEdge
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable ParentEdge instance
-
builder
Creates a builder forImmutableParentEdge
.ImmutableParentEdge.builder() .setFrom(String) // required
from
.setTo(String) // requiredto
.setLabel(String) // requiredlabel
.setInherited(boolean) // requiredinherited
.build();- Returns:
- A new ImmutableParentEdge builder
-