@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTicketPriority extends TicketPriority
TicketPriority
.
Use the builder to create immutable instances:
ImmutableTicketPriority.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableTicketPriority.Builder
Builds instances of type
ImmutableTicketPriority . |
Modifier and Type | Method and Description |
---|---|
static ImmutableTicketPriority.Builder |
builder()
Creates a builder for
ImmutableTicketPriority . |
static ImmutableTicketPriority |
copyOf(TicketPriority instance)
Creates an immutable copy of a
TicketPriority value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTicketPriority that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id , name , iconUrl . |
Optional<String> |
iconUrl() |
String |
id() |
String |
name() |
String |
toString()
Prints the immutable value
TicketPriority with attribute values. |
ImmutableTicketPriority |
withIconUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
iconUrl attribute. |
ImmutableTicketPriority |
withIconUrl(String value)
Copy the current immutable object by setting a present value for the optional
iconUrl attribute. |
ImmutableTicketPriority |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableTicketPriority |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public String id()
id
in class TicketPriority
id
attributepublic String name()
name
in class TicketPriority
name
attributepublic Optional<String> iconUrl()
iconUrl
in class TicketPriority
iconUrl
attributepublic final ImmutableTicketPriority withId(String 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 ImmutableTicketPriority 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 ImmutableTicketPriority withIconUrl(String value)
iconUrl
attribute.value
- The value for iconUrlthis
objectpublic final ImmutableTicketPriority withIconUrl(Optional<String> optional)
iconUrl
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for iconUrlthis
objectpublic boolean equals(@Nullable Object another)
ImmutableTicketPriority
that have equal attribute values.public int hashCode()
id
, name
, iconUrl
.public String toString()
TicketPriority
with attribute values.public static ImmutableTicketPriority copyOf(TicketPriority instance)
TicketPriority
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 ImmutableTicketPriority.Builder builder()
ImmutableTicketPriority
.
ImmutableTicketPriority.builder() .setId(String) // requiredid
.setName(String) // requiredname
.setIconUrl(String) // optionaliconUrl
.build();
Copyright © 2024 Atlassian. All rights reserved.