Package io.resys.thena.api.entities
Class ImmutablePageSorting<P>
java.lang.Object
io.resys.thena.api.entities.ImmutablePageSorting<P>
- All Implemented Interfaces:
PageQuery.PageSorting<P>
@Generated(from="PageQuery.PageSorting",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutablePageSorting<P>
extends Object
implements PageQuery.PageSorting<P>
Immutable implementation of
PageQuery.PageSorting.
Use the builder to create immutable instances:
ImmutablePageSorting.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePageSorting. -
Method Summary
Modifier and TypeMethodDescriptionstatic <P> ImmutablePageSorting.Builder<P> builder()Creates a builder forImmutablePageSorting.static <P> ImmutablePageSorting<P> copyOf(PageQuery.PageSorting<P> instance) Creates an immutable copy of aPageQuery.PageSortingvalue.booleanThis instance is equal to all instances ofImmutablePageSortingthat have equal attribute values.com.google.common.collect.ImmutableList<PageQuery.PageSortingOrder<P>> inthashCode()Computes a hash code from attributes:orders.toString()Prints the immutable valuePageSortingwith attribute values.final ImmutablePageSorting<P> withOrders(PageQuery.PageSortingOrder<P>... elements) Copy the current immutable object with elements that replace the content oforders.final ImmutablePageSorting<P> withOrders(Iterable<? extends PageQuery.PageSortingOrder<P>> elements) Copy the current immutable object with elements that replace the content oforders.
-
Method Details
-
getOrders
- Specified by:
getOrdersin interfacePageQuery.PageSorting<P>- Returns:
- The value of the
ordersattribute
-
withOrders
@SafeVarargs public final ImmutablePageSorting<P> withOrders(PageQuery.PageSortingOrder<P>... elements) Copy the current immutable object with elements that replace the content oforders.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOrders
public final ImmutablePageSorting<P> withOrders(Iterable<? extends PageQuery.PageSortingOrder<P>> elements) Copy the current immutable object with elements that replace the content oforders. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of orders elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutablePageSortingthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:orders. -
toString
Prints the immutable valuePageSortingwith attribute values. -
copyOf
Creates an immutable copy of aPageQuery.PageSortingvalue. 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 PageSorting instance
-
builder
Creates a builder forImmutablePageSorting.ImmutablePageSorting.<P>builder() .addOrders|addAllOrders(io.resys.thena.api.entities.PageQuery.PageSortingOrder<P>) //orderselements .build();- Type Parameters:
P- generic parameter P- Returns:
- A new ImmutablePageSorting builder
-