Package io.resys.thena.api.envelope
Class ImmutableQueryEnvelopePage<T extends ThenaContainer>
java.lang.Object
io.resys.thena.api.envelope.ImmutableQueryEnvelopePage<T>
- All Implemented Interfaces:
QueryEnvelopePage<T>,ThenaEnvelope
@Generated(from="QueryEnvelopePage",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableQueryEnvelopePage<T extends ThenaContainer>
extends Object
implements QueryEnvelopePage<T>
Immutable implementation of
QueryEnvelopePage.
Use the builder to create immutable instances:
ImmutableQueryEnvelopePage.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableQueryEnvelopePage. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ThenaContainer>
ImmutableQueryEnvelopePage.Builder<T> builder()Creates a builder forImmutableQueryEnvelopePage.static <T extends ThenaContainer>
ImmutableQueryEnvelopePage<T> copyOf(QueryEnvelopePage<T> instance) Creates an immutable copy of aQueryEnvelopePagevalue.booleanThis instance is equal to all instances ofImmutableQueryEnvelopePagethat have equal attribute values.com.google.common.collect.ImmutableList<T> com.google.common.collect.ImmutableList<Message> getRepo()inthashCode()Computes a hash code from attributes:repo,currentPageObjects,currentPageNumber,totalPages,totalObjectsOnPages,status,messages.toString()Prints the immutable valueQueryEnvelopePagewith attribute values.final ImmutableQueryEnvelopePage<T> withCurrentPageNumber(Integer value) Copy the current immutable object by setting a value for thecurrentPageNumberattribute.final ImmutableQueryEnvelopePage<T> withCurrentPageObjects(Iterable<? extends T> elements) Copy the current immutable object with elements that replace the content ofcurrentPageObjects.final ImmutableQueryEnvelopePage<T> withCurrentPageObjects(T... elements) Copy the current immutable object with elements that replace the content ofcurrentPageObjects.final ImmutableQueryEnvelopePage<T> withMessages(Message... elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableQueryEnvelopePage<T> withMessages(Iterable<? extends Message> elements) Copy the current immutable object with elements that replace the content ofmessages.final ImmutableQueryEnvelopePage<T> Copy the current immutable object by setting a value for therepoattribute.final ImmutableQueryEnvelopePage<T> Copy the current immutable object by setting a value for thestatusattribute.final ImmutableQueryEnvelopePage<T> withTotalObjectsOnPages(Long value) Copy the current immutable object by setting a value for thetotalObjectsOnPagesattribute.final ImmutableQueryEnvelopePage<T> withTotalPages(Integer value) Copy the current immutable object by setting a value for thetotalPagesattribute.
-
Method Details
-
getRepo
- Specified by:
getRepoin interfaceQueryEnvelopePage<T extends ThenaContainer>- Returns:
- The value of the
repoattribute
-
getCurrentPageObjects
- Specified by:
getCurrentPageObjectsin interfaceQueryEnvelopePage<T extends ThenaContainer>- Returns:
- The value of the
currentPageObjectsattribute
-
getCurrentPageNumber
- Specified by:
getCurrentPageNumberin interfaceQueryEnvelopePage<T extends ThenaContainer>- Returns:
- The value of the
currentPageNumberattribute
-
getTotalPages
- Specified by:
getTotalPagesin interfaceQueryEnvelopePage<T extends ThenaContainer>- Returns:
- The value of the
totalPagesattribute
-
getTotalObjectsOnPages
- Specified by:
getTotalObjectsOnPagesin interfaceQueryEnvelopePage<T extends ThenaContainer>- Returns:
- The value of the
totalObjectsOnPagesattribute
-
getStatus
- Specified by:
getStatusin interfaceQueryEnvelopePage<T extends ThenaContainer>- Returns:
- The value of the
statusattribute
-
getMessages
- Specified by:
getMessagesin interfaceQueryEnvelopePage<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
-
withCurrentPageObjects
@SafeVarargs public final ImmutableQueryEnvelopePage<T> withCurrentPageObjects(@Nullable T... elements) Copy the current immutable object with elements that replace the content ofcurrentPageObjects.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCurrentPageObjects
public final ImmutableQueryEnvelopePage<T> withCurrentPageObjects(@Nullable Iterable<? extends T> elements) Copy the current immutable object with elements that replace the content ofcurrentPageObjects. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of currentPageObjects elements to set- Returns:
- A modified copy or
thisif not changed
-
withCurrentPageNumber
Copy the current immutable object by setting a value for thecurrentPageNumberattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for currentPageNumber (can benull)- Returns:
- A modified copy or the
thisobject
-
withTotalPages
Copy the current immutable object by setting a value for thetotalPagesattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for totalPages (can benull)- Returns:
- A modified copy or the
thisobject
-
withTotalObjectsOnPages
Copy the current immutable object by setting a value for thetotalObjectsOnPagesattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for totalObjectsOnPages (can benull)- Returns:
- A modified copy or the
thisobject
-
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 ofImmutableQueryEnvelopePagethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:repo,currentPageObjects,currentPageNumber,totalPages,totalObjectsOnPages,status,messages. -
toString
Prints the immutable valueQueryEnvelopePagewith attribute values. -
copyOf
public static <T extends ThenaContainer> ImmutableQueryEnvelopePage<T> copyOf(QueryEnvelopePage<T> instance) Creates an immutable copy of aQueryEnvelopePagevalue. 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 QueryEnvelopePage instance
-
builder
Creates a builder forImmutableQueryEnvelopePage.ImmutableQueryEnvelopePage.<T>builder() .repo(io.resys.thena.api.entities.Tenant | null) // nullablerepo.currentPageObjects(List<T> | null) // nullablecurrentPageObjects.currentPageNumber(Integer | null) // nullablecurrentPageNumber.totalPages(Integer | null) // nullabletotalPages.totalObjectsOnPages(Long | null) // nullabletotalObjectsOnPages.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 ImmutableQueryEnvelopePage builder
-