Class ImmutablePaginationRequestParametersDto
- java.lang.Object
-
- com.chutneytesting.server.core.domain.tools.ImmutablePaginationRequestParametersDto
-
- All Implemented Interfaces:
PaginationRequestParametersDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePaginationRequestParametersDto extends Object implements PaginationRequestParametersDto
Immutable implementation ofPaginationRequestParametersDto.Use the builder to create immutable instances:
ImmutablePaginationRequestParametersDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePaginationRequestParametersDto.BuilderBuilds instances of typeImmutablePaginationRequestParametersDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePaginationRequestParametersDto.Builderbuilder()Creates a builder forImmutablePaginationRequestParametersDto.static ImmutablePaginationRequestParametersDtocopyOf(PaginationRequestParametersDto instance)Creates an immutable copy of aPaginationRequestParametersDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutablePaginationRequestParametersDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:start,limit.Longlimit()Longstart()StringtoString()Prints the immutable valuePaginationRequestParametersDtowith attribute values.ImmutablePaginationRequestParametersDtowithLimit(Long value)Copy the current immutable object by setting a value for thelimitattribute.ImmutablePaginationRequestParametersDtowithStart(Long value)Copy the current immutable object by setting a value for thestartattribute.
-
-
-
Method Detail
-
start
public Long start()
- Specified by:
startin interfacePaginationRequestParametersDto- Returns:
- The value of the
startattribute
-
limit
public Long limit()
- Specified by:
limitin interfacePaginationRequestParametersDto- Returns:
- The value of the
limitattribute
-
withStart
public final ImmutablePaginationRequestParametersDto withStart(Long value)
Copy the current immutable object by setting a value for thestartattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for start- Returns:
- A modified copy of the
thisobject
-
withLimit
public final ImmutablePaginationRequestParametersDto withLimit(Long value)
Copy the current immutable object by setting a value for thelimitattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for limit- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutablePaginationRequestParametersDtothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:start,limit.
-
toString
public String toString()
Prints the immutable valuePaginationRequestParametersDtowith attribute values.
-
copyOf
public static ImmutablePaginationRequestParametersDto copyOf(PaginationRequestParametersDto instance)
Creates an immutable copy of aPaginationRequestParametersDtovalue. 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 PaginationRequestParametersDto instance
-
builder
public static ImmutablePaginationRequestParametersDto.Builder builder()
Creates a builder forImmutablePaginationRequestParametersDto.ImmutablePaginationRequestParametersDto.builder() .start(Long) // optionalstart.limit(Long) // optionallimit.build();- Returns:
- A new ImmutablePaginationRequestParametersDto builder
-
-