@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","UsersListParamsIF"}) @Immutable public final class UsersListParams extends Object implements UsersListParamsIF
UsersListParamsIF.
Use the builder to create immutable instances:
UsersListParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
UsersListParams.Builder
Builds instances of type
UsersListParams. |
| Modifier and Type | Method and Description |
|---|---|
static UsersListParams.Builder |
builder()
Creates a builder for
UsersListParams. |
static UsersListParams |
copyOf(UsersListParamsIF instance)
Creates an immutable copy of a
UsersListParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
UsersListParams that have equal attribute values. |
Optional<String> |
getCursor() |
Optional<Integer> |
getLimit() |
int |
hashCode()
Computes a hash code from attributes:
cursor, limit. |
String |
toString()
Prints the immutable value
UsersListParams with attribute values. |
UsersListParams |
withCursor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
cursor attribute. |
UsersListParams |
withCursor(String value)
Copy the current immutable object by setting a present value for the optional
cursor attribute. |
UsersListParams |
withLimit(Integer value)
Copy the current immutable object by setting a present value for the optional
limit attribute. |
UsersListParams |
withLimit(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
limit attribute. |
public Optional<String> getCursor()
getCursor in interface UsersListParamsIFcursor attributepublic Optional<Integer> getLimit()
getLimit in interface UsersListParamsIFlimit attributepublic final UsersListParams withCursor(@Nullable String value)
cursor attribute.value - The value for cursor, null is accepted as java.util.Optional.empty()this objectpublic final UsersListParams withCursor(Optional<String> optional)
cursor attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for cursorthis objectpublic final UsersListParams withLimit(@Nullable Integer value)
limit attribute.value - The value for limit, null is accepted as java.util.Optional.empty()this objectpublic final UsersListParams withLimit(Optional<Integer> optional)
limit attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for limitthis objectpublic boolean equals(@Nullable Object another)
UsersListParams that have equal attribute values.public int hashCode()
cursor, limit.public String toString()
UsersListParams with attribute values.public static UsersListParams copyOf(UsersListParamsIF instance)
UsersListParamsIF 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 UsersListParams.Builder builder()
UsersListParams.Copyright © 2019. All rights reserved.