@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableObjectNode extends ObjectNode
ObjectNode
.
Use the builder to create immutable instances:
ImmutableObjectNode.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableObjectNode.Builder
Builds instances of type
ImmutableObjectNode . |
Modifier and Type | Method and Description |
---|---|
AvatarBean |
avatar() |
static ImmutableObjectNode.Builder |
builder()
Creates a builder for
ImmutableObjectNode . |
boolean |
canCreateReference() |
static ImmutableObjectNode |
copyOf(ObjectNode instance)
Creates an immutable copy of a
ObjectNode value. |
int |
depth() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableObjectNode that have equal attribute values. |
boolean |
expanded() |
int |
hashCode()
Computes a hash code from attributes:
id . |
int |
id() |
ObjectBean |
object() |
Integer |
objectTypeAttributeId() |
String |
toString()
Prints the immutable value
ObjectNode with attribute values. |
ImmutableObjectNode |
withAvatar(AvatarBean value)
Copy the current immutable object by setting a value for the
avatar attribute. |
ImmutableObjectNode |
withCanCreateReference(boolean value)
Copy the current immutable object by setting a value for the
canCreateReference attribute. |
ImmutableObjectNode |
withDepth(int value)
Copy the current immutable object by setting a value for the
depth attribute. |
ImmutableObjectNode |
withExpanded(boolean value)
Copy the current immutable object by setting a value for the
expanded attribute. |
ImmutableObjectNode |
withId(int value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableObjectNode |
withObject(ObjectBean value)
Copy the current immutable object by setting a value for the
object attribute. |
ImmutableObjectNode |
withObjectTypeAttributeId(Integer value)
Copy the current immutable object by setting a value for the
objectTypeAttributeId attribute. |
public boolean canCreateReference()
canCreateReference
in class Node
canCreateReference
attributepublic int depth()
public boolean expanded()
public ObjectBean object()
object
in class ObjectNode
object
attributepublic AvatarBean avatar()
avatar
in class ObjectNode
avatar
attribute@Nullable public Integer objectTypeAttributeId()
objectTypeAttributeId
in class ObjectNode
objectTypeAttributeId
attributepublic final ImmutableObjectNode withId(int value)
id
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for idthis
objectpublic final ImmutableObjectNode withCanCreateReference(boolean value)
canCreateReference
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for canCreateReferencethis
objectpublic final ImmutableObjectNode withDepth(int value)
depth
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for depththis
objectpublic final ImmutableObjectNode withExpanded(boolean value)
expanded
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for expandedthis
objectpublic final ImmutableObjectNode withObject(ObjectBean value)
object
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for objectthis
objectpublic final ImmutableObjectNode withAvatar(AvatarBean value)
avatar
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for avatarthis
objectpublic final ImmutableObjectNode withObjectTypeAttributeId(@Nullable Integer value)
objectTypeAttributeId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for objectTypeAttributeId (can be null
)this
objectpublic boolean equals(@Nullable Object another)
ImmutableObjectNode
that have equal attribute values.public int hashCode()
id
.public String toString()
ObjectNode
with attribute values.public static ImmutableObjectNode copyOf(ObjectNode instance)
ObjectNode
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 ImmutableObjectNode.Builder builder()
ImmutableObjectNode
.
ImmutableObjectNode.builder() .setId(int) // requiredid
.setCanCreateReference(boolean) // requiredcanCreateReference
.setDepth(int) // requireddepth
.setExpanded(boolean) // requiredexpanded
.setObject(com.riadalabs.jira.plugins.insight.services.model.ObjectBean) // requiredobject
.setAvatar(com.riadalabs.jira.plugins.insight.services.model.AvatarBean) // requiredavatar
.setObjectTypeAttributeId(Integer | null) // nullableobjectTypeAttributeId
.build();
Copyright © 2023 Atlassian. All rights reserved.