Package io.riada.insight.model
Class ImmutableObjectTickets
java.lang.Object
io.riada.insight.model.ObjectTickets
io.riada.insight.model.ImmutableObjectTickets
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableObjectTickets
extends ObjectTickets
Immutable implementation of
ObjectTickets.
Use the builder to create immutable instances:
ImmutableObjectTickets.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableObjectTickets. -
Method Summary
Modifier and TypeMethodDescriptionA query string which would return all the related tickets listed for the objectbuilder()Creates a builder forImmutableObjectTickets.static ImmutableObjectTicketscopyOf(ObjectTickets instance) Creates an immutable copy of aObjectTicketsvalue.booleanThis instance is equal to all instances ofImmutableObjectTicketsthat have equal attribute values.inthashCode()Computes a hash code from attributes:tickets,allTicketsQuery.com.google.common.collect.ImmutableList<Ticket>tickets()toString()Prints the immutable valueObjectTicketswith attribute values.final ImmutableObjectTicketswithAllTicketsQuery(String value) Copy the current immutable object by setting a value for theallTicketsQueryattribute.final ImmutableObjectTicketswithTickets(Ticket... elements) Copy the current immutable object with elements that replace the content oftickets.final ImmutableObjectTicketswithTickets(Iterable<? extends Ticket> elements) Copy the current immutable object with elements that replace the content oftickets.
-
Method Details
-
tickets
- Specified by:
ticketsin classObjectTickets- Returns:
- The value of the
ticketsattribute
-
allTicketsQuery
A query string which would return all the related tickets listed for the object- Specified by:
allTicketsQueryin classObjectTickets- Returns:
- the query string
-
withTickets
Copy the current immutable object with elements that replace the content oftickets.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTickets
Copy the current immutable object with elements that replace the content oftickets. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of tickets elements to set- Returns:
- A modified copy of
thisobject
-
withAllTicketsQuery
Copy the current immutable object by setting a value for theallTicketsQueryattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for allTicketsQuery- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableObjectTicketsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tickets,allTicketsQuery. -
toString
Prints the immutable valueObjectTicketswith attribute values. -
copyOf
Creates an immutable copy of aObjectTicketsvalue. 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 ObjectTickets instance
-
builder
Creates a builder forImmutableObjectTickets.ImmutableObjectTickets.builder() .addTickets|addAllTickets(io.riada.insight.model.Ticket) //ticketselements .setAllTicketsQuery(String) // requiredallTicketsQuery.build();- Returns:
- A new ImmutableObjectTickets builder
-