Package io.riada.insight.model
Class ImmutableTicketStatus
java.lang.Object
io.riada.insight.model.TicketStatus
io.riada.insight.model.ImmutableTicketStatus
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableTicketStatus
extends TicketStatus
Immutable implementation of
TicketStatus
.
Use the builder to create immutable instances:
ImmutableTicketStatus.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableTicketStatus
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableTicketStatus
.static ImmutableTicketStatus
copyOf
(TicketStatus instance) Creates an immutable copy of aTicketStatus
value.done()
boolean
This instance is equal to all instances ofImmutableTicketStatus
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,name
,description
,done
,colorName
.id()
name()
toString()
Prints the immutable valueTicketStatus
with attribute values.final ImmutableTicketStatus
withColorName
(String value) Copy the current immutable object by setting a present value for the optionalcolorName
attribute.final ImmutableTicketStatus
withColorName
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecolorName
attribute.final ImmutableTicketStatus
withDescription
(String value) Copy the current immutable object by setting a present value for the optionaldescription
attribute.final ImmutableTicketStatus
withDescription
(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescription
attribute.final ImmutableTicketStatus
Copy the current immutable object by setting a value for thedone
attribute.final ImmutableTicketStatus
Copy the current immutable object by setting a value for theid
attribute.final ImmutableTicketStatus
Copy the current immutable object by setting a value for thename
attribute.
-
Method Details
-
id
- Specified by:
id
in classTicketStatus
- Returns:
- The value of the
id
attribute
-
name
- Specified by:
name
in classTicketStatus
- Returns:
- The value of the
name
attribute
-
description
- Specified by:
description
in classTicketStatus
- Returns:
- The value of the
description
attribute
-
done
- Specified by:
done
in classTicketStatus
- Returns:
- The value of the
done
attribute
-
colorName
- Specified by:
colorName
in classTicketStatus
- Returns:
- The value of the
colorName
attribute
-
withId
Copy the current immutable object by setting a value for theid
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for id- Returns:
- A modified copy of the
this
object
-
withName
Copy the current immutable object by setting a value for thename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for name- Returns:
- A modified copy of the
this
object
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescription
attribute.- Parameters:
value
- The value for description- Returns:
- A modified copy of
this
object
-
withDescription
Copy the current immutable object by setting an optional value for thedescription
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for description- Returns:
- A modified copy of
this
object
-
withDone
Copy the current immutable object by setting a value for thedone
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for done- Returns:
- A modified copy of the
this
object
-
withColorName
Copy the current immutable object by setting a present value for the optionalcolorName
attribute.- Parameters:
value
- The value for colorName- Returns:
- A modified copy of
this
object
-
withColorName
Copy the current immutable object by setting an optional value for thecolorName
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for colorName- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofImmutableTicketStatus
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,name
,description
,done
,colorName
. -
toString
Prints the immutable valueTicketStatus
with attribute values. -
copyOf
Creates an immutable copy of aTicketStatus
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable TicketStatus instance
-
builder
Creates a builder forImmutableTicketStatus
.ImmutableTicketStatus.builder() .setId(Long) // required
id
.setName(String) // requiredname
.setDescription(String) // optionaldescription
.setDone(Boolean) // requireddone
.setColorName(String) // optionalcolorName
.build();- Returns:
- A new ImmutableTicketStatus builder
-