Class ImmutablePaginationRequestParametersDto
java.lang.Object
fr.enedis.chutney.server.core.domain.tools.ImmutablePaginationRequestParametersDto
- All Implemented Interfaces:
PaginationRequestParametersDto
@Generated(from="PaginationRequestParametersDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutablePaginationRequestParametersDto
extends Object
implements PaginationRequestParametersDto
Immutable implementation of
PaginationRequestParametersDto.
Use the builder to create immutable instances:
ImmutablePaginationRequestParametersDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePaginationRequestParametersDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePaginationRequestParametersDto.copyOf(PaginationRequestParametersDto instance) Creates an immutable copy of aPaginationRequestParametersDtovalue.booleanThis instance is equal to all instances ofImmutablePaginationRequestParametersDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:start,limit.limit()start()toString()Prints the immutable valuePaginationRequestParametersDtowith attribute values.Copy the current immutable object by setting a value for thelimitattribute.Copy the current immutable object by setting a value for thestartattribute.
-
Method Details
-
start
- Specified by:
startin interfacePaginationRequestParametersDto- Returns:
- The value of the
startattribute
-
limit
- Specified by:
limitin interfacePaginationRequestParametersDto- Returns:
- The value of the
limitattribute
-
withStart
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 or the
thisobject
-
withLimit
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 or the
thisobject
-
equals
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
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
Creates a builder forImmutablePaginationRequestParametersDto.ImmutablePaginationRequestParametersDto.builder() .start(Long) // optionalstart.limit(Long) // optionallimit.build();- Returns:
- A new ImmutablePaginationRequestParametersDto builder
-