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 class
Builds 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 ImmutableObjectTickets
copyOf
(ObjectTickets instance) Creates an immutable copy of aObjectTickets
value.boolean
This instance is equal to all instances ofImmutableObjectTickets
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:tickets
,allTicketsQuery
.com.google.common.collect.ImmutableList<Ticket>
tickets()
toString()
Prints the immutable valueObjectTickets
with attribute values.final ImmutableObjectTickets
withAllTicketsQuery
(String value) Copy the current immutable object by setting a value for theallTicketsQuery
attribute.final ImmutableObjectTickets
withTickets
(Ticket... elements) Copy the current immutable object with elements that replace the content oftickets
.final ImmutableObjectTickets
withTickets
(Iterable<? extends Ticket> elements) Copy the current immutable object with elements that replace the content oftickets
.
-
Method Details
-
tickets
- Specified by:
tickets
in classObjectTickets
- Returns:
- The value of the
tickets
attribute
-
allTicketsQuery
A query string which would return all the related tickets listed for the object- Specified by:
allTicketsQuery
in 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
this
object
-
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
this
object
-
withAllTicketsQuery
Copy the current immutable object by setting a value for theallTicketsQuery
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableObjectTickets
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tickets
,allTicketsQuery
. -
toString
Prints the immutable valueObjectTickets
with attribute values. -
copyOf
Creates an immutable copy of aObjectTickets
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 ObjectTickets instance
-
builder
Creates a builder forImmutableObjectTickets
.ImmutableObjectTickets.builder() .addTickets|addAllTickets(io.riada.insight.model.Ticket) //
tickets
elements .setAllTicketsQuery(String) // requiredallTicketsQuery
.build();- Returns:
- A new ImmutableObjectTickets builder
-