@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","MessagePageIF"}) @Immutable public final class MessagePage extends Object implements MessagePageIF
MessagePageIF.
Use the builder to create immutable instances:
MessagePage.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
MessagePage.Builder
Builds instances of type
MessagePage. |
| Modifier and Type | Method and Description |
|---|---|
static MessagePage.Builder |
builder()
Creates a builder for
MessagePage. |
static MessagePage |
copyOf(MessagePageIF instance)
Creates an immutable copy of a
MessagePageIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
MessagePage that have equal attribute values. |
List<Message> |
getMatches() |
Paging |
getPaging() |
int |
getTotal() |
int |
hashCode()
Computes a hash code from attributes:
total, paging, matches. |
String |
toString()
Prints the immutable value
MessagePage with attribute values. |
MessagePage |
withMatches(Iterable<? extends Message> elements)
Copy the current immutable object with elements that replace the content of
matches. |
MessagePage |
withMatches(Message... elements)
Copy the current immutable object with elements that replace the content of
matches. |
MessagePage |
withPaging(Paging paging)
Copy the current immutable object by setting a value for the
paging attribute. |
MessagePage |
withTotal(int total)
Copy the current immutable object by setting a value for the
total attribute. |
public int getTotal()
getTotal in interface MessagePageIFtotal attributepublic Paging getPaging()
getPaging in interface MessagePageIFpaging attributepublic List<Message> getMatches()
getMatches in interface MessagePageIFmatches attributepublic final MessagePage withTotal(int total)
total attribute.
A value equality check is used to prevent copying of the same value by returning this.total - A new value for totalthis objectpublic final MessagePage withPaging(Paging paging)
paging attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.paging - A new value for pagingthis objectpublic final MessagePage withMatches(Message... elements)
matches.elements - The elements to setthis objectpublic final MessagePage withMatches(Iterable<? extends Message> elements)
matches.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of matches elements to setthis objectpublic boolean equals(@Nullable Object another)
MessagePage that have equal attribute values.public int hashCode()
total, paging, matches.public String toString()
MessagePage with attribute values.public static MessagePage copyOf(MessagePageIF instance)
MessagePageIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static MessagePage.Builder builder()
MessagePage.Copyright © 2019. All rights reserved.