Class ImmutableSortRequestParametersDto
java.lang.Object
fr.enedis.chutney.server.core.domain.tools.ImmutableSortRequestParametersDto
- All Implemented Interfaces:
SortRequestParametersDto
@Generated(from="SortRequestParametersDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSortRequestParametersDto
extends Object
implements SortRequestParametersDto
Immutable implementation of
SortRequestParametersDto.
Use the builder to create immutable instances:
ImmutableSortRequestParametersDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSortRequestParametersDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSortRequestParametersDto.copyOf(SortRequestParametersDto instance) Creates an immutable copy of aSortRequestParametersDtovalue.desc()booleanThis instance is equal to all instances ofImmutableSortRequestParametersDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:sort,desc,sortParameters,descParameters.sort()toString()Prints the immutable valueSortRequestParametersDtowith attribute values.Copy the current immutable object by setting a value for thedescattribute.Copy the current immutable object by setting a value for thesortattribute.
-
Method Details
-
sort
- Specified by:
sortin interfaceSortRequestParametersDto- Returns:
- The value of the
sortattribute
-
desc
- Specified by:
descin interfaceSortRequestParametersDto- Returns:
- The value of the
descattribute
-
sortParameters
- Specified by:
sortParametersin interfaceSortRequestParametersDto- Returns:
- The computed-at-construction value of the
sortParametersattribute
-
descParameters
- Specified by:
descParametersin interfaceSortRequestParametersDto- Returns:
- The computed-at-construction value of the
descParametersattribute
-
withSort
Copy the current immutable object by setting a value for thesortattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sort (can benull)- Returns:
- A modified copy or the
thisobject
-
withDesc
Copy the current immutable object by setting a value for thedescattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for desc (can benull)- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableSortRequestParametersDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:sort,desc,sortParameters,descParameters. -
toString
Prints the immutable valueSortRequestParametersDtowith attribute values. -
copyOf
Creates an immutable copy of aSortRequestParametersDtovalue. 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 SortRequestParametersDto instance
-
builder
Creates a builder forImmutableSortRequestParametersDto.ImmutableSortRequestParametersDto.builder() .sort(String | null) // nullablesort.desc(String | null) // nullabledesc.build();- Returns:
- A new ImmutableSortRequestParametersDto builder
-