@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTicketContext extends TicketContext
TicketContext
.
Use the builder to create immutable instances:
ImmutableTicketContext.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableTicketContext.Builder
Builds instances of type
ImmutableTicketContext . |
Modifier and Type | Method and Description |
---|---|
static ImmutableTicketContext.Builder |
builder()
Creates a builder for
ImmutableTicketContext . |
static ImmutableTicketContext |
copyOf(TicketContext instance)
Creates an immutable copy of a
TicketContext value. |
Optional<InsightUser> |
currentAssignee() |
OptionalLong |
currentProjectId() |
Optional<InsightUser> |
currentReporter() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTicketContext that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
currentReporter , currentAssignee , currentProjectId . |
String |
toString()
Prints the immutable value
TicketContext with attribute values. |
ImmutableTicketContext |
withCurrentAssignee(InsightUser value)
Copy the current immutable object by setting a present value for the optional
currentAssignee attribute. |
ImmutableTicketContext |
withCurrentAssignee(Optional<? extends InsightUser> optional)
Copy the current immutable object by setting an optional value for the
currentAssignee attribute. |
ImmutableTicketContext |
withCurrentProjectId(long value)
Copy the current immutable object by setting a present value for the optional
currentProjectId attribute. |
ImmutableTicketContext |
withCurrentProjectId(OptionalLong optional)
Copy the current immutable object by setting an optional value for the
currentProjectId attribute. |
ImmutableTicketContext |
withCurrentReporter(InsightUser value)
Copy the current immutable object by setting a present value for the optional
currentReporter attribute. |
ImmutableTicketContext |
withCurrentReporter(Optional<? extends InsightUser> optional)
Copy the current immutable object by setting an optional value for the
currentReporter attribute. |
public Optional<InsightUser> currentReporter()
currentReporter
in class TicketContext
currentReporter
attributepublic Optional<InsightUser> currentAssignee()
currentAssignee
in class TicketContext
currentAssignee
attributepublic OptionalLong currentProjectId()
currentProjectId
in class TicketContext
currentProjectId
attributepublic final ImmutableTicketContext withCurrentReporter(InsightUser value)
currentReporter
attribute.value
- The value for currentReporterthis
objectpublic final ImmutableTicketContext withCurrentReporter(Optional<? extends InsightUser> optional)
currentReporter
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for currentReporterthis
objectpublic final ImmutableTicketContext withCurrentAssignee(InsightUser value)
currentAssignee
attribute.value
- The value for currentAssigneethis
objectpublic final ImmutableTicketContext withCurrentAssignee(Optional<? extends InsightUser> optional)
currentAssignee
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for currentAssigneethis
objectpublic final ImmutableTicketContext withCurrentProjectId(long value)
currentProjectId
attribute.value
- The value for currentProjectIdthis
objectpublic final ImmutableTicketContext withCurrentProjectId(OptionalLong optional)
currentProjectId
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for currentProjectIdthis
objectpublic boolean equals(@Nullable Object another)
ImmutableTicketContext
that have equal attribute values.public int hashCode()
currentReporter
, currentAssignee
, currentProjectId
.public String toString()
TicketContext
with attribute values.public static ImmutableTicketContext copyOf(TicketContext instance)
TicketContext
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 ImmutableTicketContext.Builder builder()
ImmutableTicketContext
.
ImmutableTicketContext.builder() .setCurrentReporter(io.riada.insight.model.InsightUser) // optionalcurrentReporter
.setCurrentAssignee(io.riada.insight.model.InsightUser) // optionalcurrentAssignee
.setCurrentProjectId(long) // optionalcurrentProjectId
.build();
Copyright © 2024 Atlassian. All rights reserved.