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 classBuilds instances of typeImmutableTicketStatus. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableTicketStatus.static ImmutableTicketStatuscopyOf(TicketStatus instance) Creates an immutable copy of aTicketStatusvalue.done()booleanThis instance is equal to all instances ofImmutableTicketStatusthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,name,description,done,colorName.id()name()toString()Prints the immutable valueTicketStatuswith attribute values.final ImmutableTicketStatuswithColorName(String value) Copy the current immutable object by setting a present value for the optionalcolorNameattribute.final ImmutableTicketStatuswithColorName(Optional<String> optional) Copy the current immutable object by setting an optional value for thecolorNameattribute.final ImmutableTicketStatuswithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final ImmutableTicketStatuswithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final ImmutableTicketStatusCopy the current immutable object by setting a value for thedoneattribute.final ImmutableTicketStatusCopy the current immutable object by setting a value for theidattribute.final ImmutableTicketStatusCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
id
- Specified by:
idin classTicketStatus- Returns:
- The value of the
idattribute
-
name
- Specified by:
namein classTicketStatus- Returns:
- The value of the
nameattribute
-
description
- Specified by:
descriptionin classTicketStatus- Returns:
- The value of the
descriptionattribute
-
done
- Specified by:
donein classTicketStatus- Returns:
- The value of the
doneattribute
-
colorName
- Specified by:
colorNamein classTicketStatus- Returns:
- The value of the
colorNameattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. 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
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. 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
thisobject
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. 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
thisobject
-
withDone
Copy the current immutable object by setting a value for thedoneattribute. 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
thisobject
-
withColorName
Copy the current immutable object by setting a present value for the optionalcolorNameattribute.- Parameters:
value- The value for colorName- Returns:
- A modified copy of
thisobject
-
withColorName
Copy the current immutable object by setting an optional value for thecolorNameattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableTicketStatusthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,description,done,colorName. -
toString
Prints the immutable valueTicketStatuswith attribute values. -
copyOf
Creates an immutable copy of aTicketStatusvalue. 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) // requiredid.setName(String) // requiredname.setDescription(String) // optionaldescription.setDone(Boolean) // requireddone.setColorName(String) // optionalcolorName.build();- Returns:
- A new ImmutableTicketStatus builder
-