@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableParentEdge extends ParentEdge
ParentEdge
.
Use the builder to create immutable instances:
ImmutableParentEdge.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableParentEdge.Builder
Builds instances of type
ImmutableParentEdge . |
Modifier and Type | Method and Description |
---|---|
static ImmutableParentEdge.Builder |
builder()
Creates a builder for
ImmutableParentEdge . |
static ImmutableParentEdge |
copyOf(ParentEdge instance)
Creates an immutable copy of a
ParentEdge value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableParentEdge that have equal attribute values. |
String |
from() |
int |
hashCode()
Computes a hash code from attributes:
from , to , label , inherited . |
boolean |
isInherited() |
String |
label()
Describes the label placed on the edge between two nodes
|
String |
to() |
String |
toString()
Prints the immutable value
ParentEdge with attribute values. |
ImmutableParentEdge |
withFrom(String value)
Copy the current immutable object by setting a value for the
from attribute. |
ImmutableParentEdge |
withInherited(boolean value)
Copy the current immutable object by setting a value for the
inherited attribute. |
ImmutableParentEdge |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableParentEdge |
withTo(String value)
Copy the current immutable object by setting a value for the
to attribute. |
public String label()
public boolean isInherited()
isInherited
in class ParentEdge
inherited
attributepublic final ImmutableParentEdge 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 ImmutableParentEdge 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 ImmutableParentEdge 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 ImmutableParentEdge withInherited(boolean value)
inherited
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for inheritedthis
objectpublic boolean equals(@Nullable Object another)
ImmutableParentEdge
that have equal attribute values.public int hashCode()
from
, to
, label
, inherited
.public String toString()
ParentEdge
with attribute values.public static ImmutableParentEdge copyOf(ParentEdge instance)
ParentEdge
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 ImmutableParentEdge.Builder builder()
ImmutableParentEdge
.
ImmutableParentEdge.builder() .setFrom(String) // requiredfrom
.setTo(String) // requiredto
.setLabel(String) // requiredlabel
.setInherited(boolean) // requiredinherited
.build();
Copyright © 2024 Atlassian. All rights reserved.