Package io.resys.thena.api.envelope
Class ImmutableQueryEnvelopeList<T extends ThenaContainer>
java.lang.Object
io.resys.thena.api.envelope.ImmutableQueryEnvelopeList<T>
- All Implemented Interfaces:
QueryEnvelopeList<T>,ThenaEnvelope
@Generated(from="QueryEnvelopeList",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableQueryEnvelopeList<T extends ThenaContainer>
extends Object
implements QueryEnvelopeList<T>
Immutable implementation of
QueryEnvelopeList.
Use the builder to create immutable instances:
ImmutableQueryEnvelopeList.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableQueryEnvelopeList. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ThenaContainer>
ImmutableQueryEnvelopeList.Builder<T> builder()Creates a builder forImmutableQueryEnvelopeList.static <T extends ThenaContainer>
ImmutableQueryEnvelopeList<T> copyOf(QueryEnvelopeList<T> instance) Creates an immutable copy of aQueryEnvelopeListvalue.booleanThis instance is equal to all instances ofImmutableQueryEnvelopeListthat have equal attribute values.com.google.common.collect.ImmutableList<Message> com.google.common.collect.ImmutableList<T> getRepo()inthashCode()Computes a hash code from attributes:repo,objects,status,messages.toString()Prints the immutable valueQueryEnvelopeListwith attribute values.final ImmutableQueryEnvelopeList<T> withMessages(Message... elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableQueryEnvelopeList<T> withMessages(Iterable<? extends Message> elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableQueryEnvelopeList<T> withObjects(Iterable<? extends T> elements) Copy the current immutable object with elements that replace the content ofobjects.final ImmutableQueryEnvelopeList<T> withObjects(T... elements) Copy the current immutable object with elements that replace the content ofobjects.final ImmutableQueryEnvelopeList<T> Copy the current immutable object by setting a value for therepoattribute.final ImmutableQueryEnvelopeList<T> Copy the current immutable object by setting a value for thestatusattribute.
-
Method Details
-
getRepo
- Specified by:
getRepoin interfaceQueryEnvelopeList<T extends ThenaContainer>- Returns:
- The value of the
repoattribute
-
getObjects
- Specified by:
getObjectsin interfaceQueryEnvelopeList<T extends ThenaContainer>- Returns:
- The value of the
objectsattribute
-
getStatus
- Specified by:
getStatusin interfaceQueryEnvelopeList<T extends ThenaContainer>- Returns:
- The value of the
statusattribute
-
getMessages
- Specified by:
getMessagesin interfaceQueryEnvelopeList<T extends ThenaContainer>- Returns:
- The value of the
messagesattribute
-
withRepo
Copy the current immutable object by setting a value for therepoattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repo (can benull)- Returns:
- A modified copy or the
thisobject
-
withObjects
Copy the current immutable object with elements that replace the content ofobjects.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withObjects
Copy the current immutable object with elements that replace the content ofobjects. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of objects elements to set- Returns:
- A modified copy or
thisif not changed
-
withStatus
Copy the current immutable object by setting a value for thestatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status- Returns:
- A modified copy or the
thisobject
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of messages elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableQueryEnvelopeListthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:repo,objects,status,messages. -
toString
Prints the immutable valueQueryEnvelopeListwith attribute values. -
copyOf
public static <T extends ThenaContainer> ImmutableQueryEnvelopeList<T> copyOf(QueryEnvelopeList<T> instance) Creates an immutable copy of aQueryEnvelopeListvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
T- generic parameter T- Parameters:
instance- The instance to copy- Returns:
- A copied immutable QueryEnvelopeList instance
-
builder
Creates a builder forImmutableQueryEnvelopeList.ImmutableQueryEnvelopeList.<T>builder() .repo(io.resys.thena.api.entities.Tenant | null) // nullablerepo.objects(List<T> | null) // nullableobjects.status(io.resys.thena.api.envelope.QueryEnvelope.QueryEnvelopeStatus) // requiredstatus.addMessages|addAllMessages(io.resys.thena.api.envelope.Message) //messageselements .build();- Type Parameters:
T- generic parameter T- Returns:
- A new ImmutableQueryEnvelopeList builder
-