Class PageRequest.Builder
java.lang.Object
io.helidon.data.PageRequest.BuilderBase<PageRequest.Builder, PageRequest>
io.helidon.data.PageRequest.Builder
- All Implemented Interfaces:
Prototype.Builder<PageRequest.Builder, PageRequest>, Builder<PageRequest.Builder, PageRequest>, Supplier<PageRequest>
- Enclosing interface:
PageRequest
public static class PageRequest.Builder
extends PageRequest.BuilderBase<PageRequest.Builder, PageRequest>
implements Builder<PageRequest.Builder, PageRequest>
Fluent API builder for
PageRequest.-
Nested Class Summary
Nested classes/interfaces inherited from class PageRequest.BuilderBase
PageRequest.BuilderBase.PageRequestImplModifier 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 PageRequest.BuilderBase
from, from, page, page, preBuildPrototype, size, size, toString, validatePrototypeModifier and TypeMethodDescriptionfrom(PageRequest prototype) Update this builder from an existing prototype instance.from(PageRequest.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.intpage()Page number.page(int page) Page number.protected voidHandles providers and decorators.intsize()Page size.size(int size) Page size.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 PageRequestget()default PageRequest.Builderidentity()Instance of this builder as the correct type.default PageRequest.Builderupdate(Consumer<PageRequest.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault PageRequest.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<PageRequest.Builder, PageRequest>- 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<PageRequest.Builder, PageRequest>- Returns:
- instance of the built type
-