Class ImmutableReferenceEdge
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.graph.Edge
com.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdge
com.riadalabs.jira.plugins.insight.services.model.graph.ImmutableReferenceEdge
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableReferenceEdge
extends ReferenceEdge
Immutable implementation of
ReferenceEdge
.
Use the builder to create immutable instances:
ImmutableReferenceEdge.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableReferenceEdge
.Nested classes/interfaces inherited from class com.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdge
ReferenceEdge.Type
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableReferenceEdge
.static ImmutableReferenceEdge
copyOf
(ReferenceEdge instance) Creates an immutable copy of aReferenceEdge
value.boolean
This instance is equal to all instances ofImmutableReferenceEdge
that have equal attribute values.from()
int
hashCode()
Computes a hash code from attributes:from
,to
,label
,objectTypeAttribute
,type
.label()
Describes the label placed on the edge between two nodesto()
toString()
Prints the immutable valueReferenceEdge
with attribute values.type()
final ImmutableReferenceEdge
Copy the current immutable object by setting a value for thefrom
attribute.final ImmutableReferenceEdge
Copy the current immutable object by setting a value for thelabel
attribute.final ImmutableReferenceEdge
Copy the current immutable object by setting a value for theobjectTypeAttribute
attribute.final ImmutableReferenceEdge
Copy the current immutable object by setting a value for theto
attribute.final ImmutableReferenceEdge
withType
(ReferenceEdge.Type value) Copy the current immutable object by setting a value for thetype
attribute.
-
Method Details
-
from
-
to
-
label
Describes the label placed on the edge between two nodes -
objectTypeAttribute
- Specified by:
objectTypeAttribute
in classReferenceEdge
- Returns:
- The value of the
objectTypeAttribute
attribute
-
type
- Overrides:
type
in classReferenceEdge
- Returns:
- The value of the
type
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
-
withObjectTypeAttribute
Copy the current immutable object by setting a value for theobjectTypeAttribute
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for objectTypeAttribute- Returns:
- A modified copy of the
this
object
-
withType
Copy the current immutable object by setting a value for thetype
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for type- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableReferenceEdge
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:from
,to
,label
,objectTypeAttribute
,type
. -
toString
Prints the immutable valueReferenceEdge
with attribute values. -
copyOf
Creates an immutable copy of aReferenceEdge
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 ReferenceEdge instance
-
builder
Creates a builder forImmutableReferenceEdge
.ImmutableReferenceEdge.builder() .setFrom(String) // required
from
.setTo(String) // requiredto
.setLabel(String) // requiredlabel
.setObjectTypeAttribute(com.riadalabs.jira.plugins.insight.services.model.ObjectTypeAttributeBean) // requiredobjectTypeAttribute
.setType(com.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdge.Type) // optionaltype
.build();- Returns:
- A new ImmutableReferenceEdge builder
-