@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","PagingIF"}) @Immutable public final class Paging extends Object implements PagingIF
PagingIF.
Use the builder to create immutable instances:
Paging.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Paging.Builder
Builds instances of type
Paging. |
| Modifier and Type | Method and Description |
|---|---|
static Paging.Builder |
builder()
Creates a builder for
Paging. |
static Paging |
copyOf(PagingIF instance)
Creates an immutable copy of a
PagingIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Paging that have equal attribute values. |
int |
getCount() |
int |
getPage() |
int |
getPages() |
int |
getTotal() |
int |
hashCode()
Computes a hash code from attributes:
count, total, page, pages. |
String |
toString()
Prints the immutable value
Paging with attribute values. |
Paging |
withCount(int count)
Copy the current immutable object by setting a value for the
count attribute. |
Paging |
withPage(int page)
Copy the current immutable object by setting a value for the
page attribute. |
Paging |
withPages(int pages)
Copy the current immutable object by setting a value for the
pages attribute. |
Paging |
withTotal(int total)
Copy the current immutable object by setting a value for the
total attribute. |
public int getCount()
public int getTotal()
public int getPage()
public int getPages()
public final Paging withCount(int count)
count attribute.
A value equality check is used to prevent copying of the same value by returning this.count - A new value for countthis objectpublic final Paging 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 Paging withPage(int page)
page attribute.
A value equality check is used to prevent copying of the same value by returning this.page - A new value for pagethis objectpublic final Paging withPages(int pages)
pages attribute.
A value equality check is used to prevent copying of the same value by returning this.pages - A new value for pagesthis objectpublic boolean equals(@Nullable Object another)
Paging that have equal attribute values.public int hashCode()
count, total, page, pages.public String toString()
Paging with attribute values.public static Paging copyOf(PagingIF instance)
PagingIF 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 Paging.Builder builder()
Paging.Copyright © 2019. All rights reserved.