Package io.resys.thena.api.entities
Class ImmutablePageSortingOrder<P>
java.lang.Object
io.resys.thena.api.entities.ImmutablePageSortingOrder<P>
- All Implemented Interfaces:
PageQuery.PageSortingOrder<P>
@Generated(from="PageQuery.PageSortingOrder",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutablePageSortingOrder<P>
extends Object
implements PageQuery.PageSortingOrder<P>
Immutable implementation of
PageQuery.PageSortingOrder.
Use the builder to create immutable instances:
ImmutablePageSortingOrder.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePageSortingOrder. -
Method Summary
Modifier and TypeMethodDescriptionstatic <P> ImmutablePageSortingOrder.Builder<P> builder()Creates a builder forImmutablePageSortingOrder.static <P> ImmutablePageSortingOrder<P> copyOf(PageQuery.PageSortingOrder<P> instance) Creates an immutable copy of aPageQuery.PageSortingOrdervalue.booleanThis instance is equal to all instances ofImmutablePageSortingOrderthat have equal attribute values.inthashCode()Computes a hash code from attributes:direction,property,propertyType.toString()Prints the immutable valuePageSortingOrderwith attribute values.final ImmutablePageSortingOrder<P> Copy the current immutable object by setting a value for thedirectionattribute.final ImmutablePageSortingOrder<P> withProperty(P value) Copy the current immutable object by setting a value for thepropertyattribute.final ImmutablePageSortingOrder<P> withPropertyType(String value) Copy the current immutable object by setting a value for thepropertyTypeattribute.
-
Method Details
-
getDirection
- Specified by:
getDirectionin interfacePageQuery.PageSortingOrder<P>- Returns:
- The value of the
directionattribute
-
getProperty
- Specified by:
getPropertyin interfacePageQuery.PageSortingOrder<P>- Returns:
- The value of the
propertyattribute
-
getPropertyType
- Specified by:
getPropertyTypein interfacePageQuery.PageSortingOrder<P>- Returns:
- The value of the
propertyTypeattribute
-
withDirection
Copy the current immutable object by setting a value for thedirectionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for direction- Returns:
- A modified copy or the
thisobject
-
withProperty
Copy the current immutable object by setting a value for thepropertyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for property- Returns:
- A modified copy or the
thisobject
-
withPropertyType
Copy the current immutable object by setting a value for thepropertyTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for propertyType (can benull)- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutablePageSortingOrderthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:direction,property,propertyType. -
toString
Prints the immutable valuePageSortingOrderwith attribute values. -
copyOf
Creates an immutable copy of aPageQuery.PageSortingOrdervalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
P- generic parameter P- Parameters:
instance- The instance to copy- Returns:
- A copied immutable PageSortingOrder instance
-
builder
Creates a builder forImmutablePageSortingOrder.ImmutablePageSortingOrder.<P>builder() .direction(io.resys.thena.api.entities.PageQuery.PageSortDirection) // requireddirection.property(P) // requiredproperty.propertyType(String | null) // nullablepropertyType.build();- Type Parameters:
P- generic parameter P- Returns:
- A new ImmutablePageSortingOrder builder
-