Class ImmutableSortRequestParametersDto
- java.lang.Object
-
- com.chutneytesting.server.core.domain.tools.ImmutableSortRequestParametersDto
-
- All Implemented Interfaces:
SortRequestParametersDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSortRequestParametersDto extends Object implements SortRequestParametersDto
Immutable implementation ofSortRequestParametersDto.Use the builder to create immutable instances:
ImmutableSortRequestParametersDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableSortRequestParametersDto.BuilderBuilds instances of typeImmutableSortRequestParametersDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableSortRequestParametersDto.Builderbuilder()Creates a builder forImmutableSortRequestParametersDto.static ImmutableSortRequestParametersDtocopyOf(SortRequestParametersDto instance)Creates an immutable copy of aSortRequestParametersDtovalue.Stringdesc()List<String>descParameters()booleanequals(Object another)This instance is equal to all instances ofImmutableSortRequestParametersDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:sort,desc,sortParameters,descParameters.Stringsort()List<String>sortParameters()StringtoString()Prints the immutable valueSortRequestParametersDtowith attribute values.ImmutableSortRequestParametersDtowithDesc(String value)Copy the current immutable object by setting a value for thedescattribute.ImmutableSortRequestParametersDtowithSort(String value)Copy the current immutable object by setting a value for thesortattribute.
-
-
-
Method Detail
-
sort
@Nullable public String sort()
- Specified by:
sortin interfaceSortRequestParametersDto- Returns:
- The value of the
sortattribute
-
desc
@Nullable public String desc()
- Specified by:
descin interfaceSortRequestParametersDto- Returns:
- The value of the
descattribute
-
sortParameters
public List<String> sortParameters()
- Specified by:
sortParametersin interfaceSortRequestParametersDto- Returns:
- The computed-at-construction value of the
sortParametersattribute
-
descParameters
public List<String> descParameters()
- Specified by:
descParametersin interfaceSortRequestParametersDto- Returns:
- The computed-at-construction value of the
descParametersattribute
-
withSort
public final ImmutableSortRequestParametersDto withSort(@Nullable String value)
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 of the
thisobject
-
withDesc
public final ImmutableSortRequestParametersDto withDesc(@Nullable String value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueSortRequestParametersDtowith attribute values.
-
copyOf
public static ImmutableSortRequestParametersDto copyOf(SortRequestParametersDto instance)
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
public static ImmutableSortRequestParametersDto.Builder builder()
Creates a builder forImmutableSortRequestParametersDto.ImmutableSortRequestParametersDto.builder() .sort(String | null) // nullablesort.desc(String | null) // nullabledesc.build();- Returns:
- A new ImmutableSortRequestParametersDto builder
-
-