@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableObjectTypeNode extends ObjectTypeNode
ObjectTypeNode.
Use the builder to create immutable instances:
ImmutableObjectTypeNode.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableObjectTypeNode.Builder
Builds instances of type
ImmutableObjectTypeNode. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableObjectTypeNode.Builder |
builder()
Creates a builder for
ImmutableObjectTypeNode. |
boolean |
canCreateReference() |
static ImmutableObjectTypeNode |
copyOf(ObjectTypeNode instance)
Creates an immutable copy of a
ObjectTypeNode value. |
int |
depth() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableObjectTypeNode that have equal attribute values. |
boolean |
expanded() |
int |
hashCode()
Computes a hash code from attributes:
id. |
IconBean |
icon() |
int |
id() |
Integer |
objectCount() |
ObjectTypeBean |
objectType() |
Integer |
parentId() |
String |
toString()
Prints the immutable value
ObjectTypeNode with attribute values. |
ImmutableObjectTypeNode |
withCanCreateReference(boolean value)
Copy the current immutable object by setting a value for the
canCreateReference attribute. |
ImmutableObjectTypeNode |
withDepth(int value)
Copy the current immutable object by setting a value for the
depth attribute. |
ImmutableObjectTypeNode |
withExpanded(boolean value)
Copy the current immutable object by setting a value for the
expanded attribute. |
ImmutableObjectTypeNode |
withIcon(IconBean value)
Copy the current immutable object by setting a value for the
icon attribute. |
ImmutableObjectTypeNode |
withId(int value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableObjectTypeNode |
withObjectCount(Integer value)
Copy the current immutable object by setting a value for the
objectCount attribute. |
ImmutableObjectTypeNode |
withObjectType(ObjectTypeBean value)
Copy the current immutable object by setting a value for the
objectType attribute. |
ImmutableObjectTypeNode |
withParentId(Integer value)
Copy the current immutable object by setting a value for the
parentId attribute. |
public boolean canCreateReference()
canCreateReference in class NodecanCreateReference attributepublic int depth()
public boolean expanded()
public ObjectTypeBean objectType()
objectType in class ObjectTypeNodeobjectType attribute@Nullable public Integer parentId()
parentId in class ObjectTypeNodeparentId attributepublic Integer objectCount()
objectCount in class ObjectTypeNodeobjectCount attributepublic IconBean icon()
icon in class ObjectTypeNodeicon attributepublic final ImmutableObjectTypeNode 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 ImmutableObjectTypeNode 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 ImmutableObjectTypeNode 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 ImmutableObjectTypeNode 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 ImmutableObjectTypeNode withObjectType(ObjectTypeBean value)
objectType attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for objectTypethis objectpublic final ImmutableObjectTypeNode withParentId(@Nullable Integer value)
parentId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for parentId (can be null)this objectpublic final ImmutableObjectTypeNode withObjectCount(Integer value)
objectCount attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for objectCountthis objectpublic final ImmutableObjectTypeNode withIcon(IconBean value)
icon attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for iconthis objectpublic boolean equals(@Nullable Object another)
ImmutableObjectTypeNode that have equal attribute values.public int hashCode()
id.public String toString()
ObjectTypeNode with attribute values.public static ImmutableObjectTypeNode copyOf(ObjectTypeNode instance)
ObjectTypeNode 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 ImmutableObjectTypeNode.Builder builder()
ImmutableObjectTypeNode.
ImmutableObjectTypeNode.builder()
.setId(int) // required id
.setCanCreateReference(boolean) // required canCreateReference
.setDepth(int) // required depth
.setExpanded(boolean) // required expanded
.setObjectType(com.riadalabs.jira.plugins.insight.services.model.ObjectTypeBean) // required objectType
.setParentId(Integer | null) // nullable parentId
.setObjectCount(Integer) // required objectCount
.setIcon(com.riadalabs.jira.plugins.insight.services.model.IconBean) // required icon
.build();
Copyright © 2024 Atlassian. All rights reserved.