@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableReferenceEdge extends ReferenceEdge
ReferenceEdge
.
Use the builder to create immutable instances:
ImmutableReferenceEdge.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableReferenceEdge.Builder
Builds instances of type
ImmutableReferenceEdge . |
ReferenceEdge.Type
Modifier and Type | Method and Description |
---|---|
static ImmutableReferenceEdge.Builder |
builder()
Creates a builder for
ImmutableReferenceEdge . |
static ImmutableReferenceEdge |
copyOf(ReferenceEdge instance)
Creates an immutable copy of a
ReferenceEdge value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableReferenceEdge that have equal attribute values. |
String |
from() |
int |
hashCode()
Computes a hash code from attributes:
from , to , label , objectTypeAttribute , type . |
String |
label()
Describes the label placed on the edge between two nodes
|
ObjectTypeAttributeBean |
objectTypeAttribute() |
String |
to() |
String |
toString()
Prints the immutable value
ReferenceEdge with attribute values. |
ReferenceEdge.Type |
type() |
ImmutableReferenceEdge |
withFrom(String value)
Copy the current immutable object by setting a value for the
from attribute. |
ImmutableReferenceEdge |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableReferenceEdge |
withObjectTypeAttribute(ObjectTypeAttributeBean value)
Copy the current immutable object by setting a value for the
objectTypeAttribute attribute. |
ImmutableReferenceEdge |
withTo(String value)
Copy the current immutable object by setting a value for the
to attribute. |
ImmutableReferenceEdge |
withType(ReferenceEdge.Type value)
Copy the current immutable object by setting a value for the
type attribute. |
public String label()
public ObjectTypeAttributeBean objectTypeAttribute()
objectTypeAttribute
in class ReferenceEdge
objectTypeAttribute
attributepublic ReferenceEdge.Type type()
type
in class ReferenceEdge
type
attributepublic final ImmutableReferenceEdge withFrom(String value)
from
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for fromthis
objectpublic final ImmutableReferenceEdge withTo(String value)
to
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for tothis
objectpublic final ImmutableReferenceEdge withLabel(String value)
label
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for labelthis
objectpublic final ImmutableReferenceEdge withObjectTypeAttribute(ObjectTypeAttributeBean value)
objectTypeAttribute
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for objectTypeAttributethis
objectpublic final ImmutableReferenceEdge withType(ReferenceEdge.Type value)
type
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for typethis
objectpublic boolean equals(@Nullable Object another)
ImmutableReferenceEdge
that have equal attribute values.public int hashCode()
from
, to
, label
, objectTypeAttribute
, type
.public String toString()
ReferenceEdge
with attribute values.public static ImmutableReferenceEdge copyOf(ReferenceEdge instance)
ReferenceEdge
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableReferenceEdge.Builder builder()
ImmutableReferenceEdge
.
ImmutableReferenceEdge.builder() .setFrom(String) // requiredfrom
.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();
Copyright © 2024 Atlassian. All rights reserved.