Class Sort.Builder
- All Implemented Interfaces:
Prototype.Builder<Sort.Builder, Sort>, Builder<Sort.Builder, Sort>, Supplier<Sort>
- Enclosing interface:
Sort
public static class Sort.Builder
extends Sort.BuilderBase<Sort.Builder, Sort>
implements Builder<Sort.Builder, Sort>
Fluent API builder for
Sort.-
Nested Class Summary
Nested classes/interfaces inherited from class Sort.BuilderBase
Sort.BuilderBase.SortImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class Sort.BuilderBase
addOrderBy, addOrderBy, addOrderBy, clearOrderBy, from, from, orderBy, orderBy, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionaddOrderBy(Order orderBy) Listof query ordering rules.addOrderBy(Consumer<Order.Builder> consumer) Listof query ordering rules.addOrderBy(List<? extends Order> orderBy) Listof query ordering rules.Clear all orderBy.Update this builder from an existing prototype instance.from(Sort.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.orderBy()Listof query ordering rules.Listof query ordering rules.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Sortget()default Sort.Builderidentity()Instance of this builder as the correct type.default Sort.Builderupdate(Consumer<Sort.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault Sort.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<Sort.Builder, Sort>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<Sort.Builder, Sort>- Returns:
- instance of the built type
-