@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableObjectTicketConnection extends ObjectTicketConnection
ObjectTicketConnection
.
Use the builder to create immutable instances:
ImmutableObjectTicketConnection.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableObjectTicketConnection.Builder
Builds instances of type
ImmutableObjectTicketConnection . |
Modifier and Type | Method and Description |
---|---|
static ImmutableObjectTicketConnection.Builder |
builder()
Creates a builder for
ImmutableObjectTicketConnection . |
Long |
connectionId()
The connection identifier e.g.
|
static ImmutableObjectTicketConnection |
copyOf(ObjectTicketConnection instance)
Creates an immutable copy of a
ObjectTicketConnection value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableObjectTicketConnection that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id , ticketId , objectId , connectionId . |
Long |
id() |
Integer |
objectId() |
Long |
ticketId() |
String |
toString()
Prints the immutable value
ObjectTicketConnection with attribute values. |
ImmutableObjectTicketConnection |
withConnectionId(Long value)
Copy the current immutable object by setting a value for the
connectionId attribute. |
ImmutableObjectTicketConnection |
withId(Long value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableObjectTicketConnection |
withObjectId(Integer value)
Copy the current immutable object by setting a value for the
objectId attribute. |
ImmutableObjectTicketConnection |
withTicketId(Long value)
Copy the current immutable object by setting a value for the
ticketId attribute. |
public Long id()
id
in class ObjectTicketConnection
id
attributepublic Long ticketId()
ticketId
in class ObjectTicketConnection
ticketId
attributepublic Integer objectId()
objectId
in class ObjectTicketConnection
objectId
attributepublic Long connectionId()
connectionId
in class ObjectTicketConnection
public final ImmutableObjectTicketConnection withId(Long value)
id
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for idthis
objectpublic final ImmutableObjectTicketConnection withTicketId(Long value)
ticketId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for ticketIdthis
objectpublic final ImmutableObjectTicketConnection withObjectId(Integer value)
objectId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for objectIdthis
objectpublic final ImmutableObjectTicketConnection withConnectionId(Long value)
connectionId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for connectionIdthis
objectpublic boolean equals(@Nullable Object another)
ImmutableObjectTicketConnection
that have equal attribute values.public int hashCode()
id
, ticketId
, objectId
, connectionId
.public String toString()
ObjectTicketConnection
with attribute values.public static ImmutableObjectTicketConnection copyOf(ObjectTicketConnection instance)
ObjectTicketConnection
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 ImmutableObjectTicketConnection.Builder builder()
ImmutableObjectTicketConnection
.
ImmutableObjectTicketConnection.builder() .setId(Long) // requiredid
.setTicketId(Long) // requiredticketId
.setObjectId(Integer) // requiredobjectId
.setConnectionId(Long) // requiredconnectionId
.build();
Copyright © 2024 Atlassian. All rights reserved.