Class Paging
java.lang.Object
com.hubspot.slack.client.models.response.Paging
- All Implemented Interfaces:
PagingIF
@Generated(from="PagingIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Paging
extends Object
implements PagingIF
Immutable implementation of
PagingIF.
Use the builder to create immutable instances:
Paging.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Paging.Builderbuilder()Creates a builder forPaging.static PagingCreates an immutable copy of aPagingIFvalue.booleanThis instance is equal to all instances ofPagingthat have equal attribute values.intgetCount()intgetPage()intgetPages()intgetTotal()inthashCode()Computes a hash code from attributes:count,total,page,pages.toString()Prints the immutable valuePagingwith attribute values.final PagingwithCount(int value) Copy the current immutable object by setting a value for thecountattribute.final PagingwithPage(int value) Copy the current immutable object by setting a value for thepageattribute.final PagingwithPages(int value) Copy the current immutable object by setting a value for thepagesattribute.final PagingwithTotal(int value) Copy the current immutable object by setting a value for thetotalattribute.
-
Method Details
-
getCount
public int getCount() -
getTotal
public int getTotal() -
getPage
public int getPage() -
getPages
public int getPages() -
withCount
Copy the current immutable object by setting a value for thecountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for count- Returns:
- A modified copy or the
thisobject
-
withTotal
Copy the current immutable object by setting a value for thetotalattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for total- Returns:
- A modified copy or the
thisobject
-
withPage
Copy the current immutable object by setting a value for thepageattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for page- Returns:
- A modified copy or the
thisobject
-
withPages
Copy the current immutable object by setting a value for thepagesattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pages- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofPagingthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:count,total,page,pages. -
toString
Prints the immutable valuePagingwith attribute values. -
copyOf
Creates an immutable copy of aPagingIFvalue. 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 Paging instance
-
builder
Creates a builder forPaging.Paging.builder() .setCount(int) // requiredcount.setTotal(int) // requiredtotal.setPage(int) // requiredpage.setPages(int) // requiredpages.build();- Returns:
- A new Paging builder
-