@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTicketStatus extends TicketStatus
TicketStatus.
Use the builder to create immutable instances:
ImmutableTicketStatus.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTicketStatus.Builder
Builds instances of type
ImmutableTicketStatus. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTicketStatus.Builder |
builder()
Creates a builder for
ImmutableTicketStatus. |
Optional<String> |
colorName() |
static ImmutableTicketStatus |
copyOf(TicketStatus instance)
Creates an immutable copy of a
TicketStatus value. |
Optional<String> |
description() |
Boolean |
done() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTicketStatus that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, name, description, done, colorName. |
Long |
id() |
String |
name() |
String |
toString()
Prints the immutable value
TicketStatus with attribute values. |
ImmutableTicketStatus |
withColorName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
colorName attribute. |
ImmutableTicketStatus |
withColorName(String value)
Copy the current immutable object by setting a present value for the optional
colorName attribute. |
ImmutableTicketStatus |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
ImmutableTicketStatus |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
ImmutableTicketStatus |
withDone(Boolean value)
Copy the current immutable object by setting a value for the
done attribute. |
ImmutableTicketStatus |
withId(Long value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableTicketStatus |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public Long id()
id in class TicketStatusid attributepublic String name()
name in class TicketStatusname attributepublic Optional<String> description()
description in class TicketStatusdescription attributepublic Boolean done()
done in class TicketStatusdone attributepublic Optional<String> colorName()
colorName in class TicketStatuscolorName attributepublic final ImmutableTicketStatus 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 ImmutableTicketStatus withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableTicketStatus withDescription(String value)
description attribute.value - The value for descriptionthis objectpublic final ImmutableTicketStatus withDescription(Optional<String> optional)
description attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for descriptionthis objectpublic final ImmutableTicketStatus withDone(Boolean value)
done attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for donethis objectpublic final ImmutableTicketStatus withColorName(String value)
colorName attribute.value - The value for colorNamethis objectpublic final ImmutableTicketStatus withColorName(Optional<String> optional)
colorName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for colorNamethis objectpublic boolean equals(@Nullable Object another)
ImmutableTicketStatus that have equal attribute values.public int hashCode()
id, name, description, done, colorName.public String toString()
TicketStatus with attribute values.public static ImmutableTicketStatus copyOf(TicketStatus instance)
TicketStatus 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 ImmutableTicketStatus.Builder builder()
ImmutableTicketStatus.
ImmutableTicketStatus.builder()
.setId(Long) // required id
.setName(String) // required name
.setDescription(String) // optional description
.setDone(Boolean) // required done
.setColorName(String) // optional colorName
.build();
Copyright © 2023 Atlassian. All rights reserved.