Module io.helidon.data
Package io.helidon.data
Class PageRequest.BuilderBase<BUILDER extends PageRequest.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PageRequest>
java.lang.Object
io.helidon.data.PageRequest.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
PageRequest.Builder
- Enclosing interface:
PageRequest
public abstract static class PageRequest.BuilderBase<BUILDER extends PageRequest.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PageRequest>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
PageRequest
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier 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.int
page()
Page number.page
(int page) Page number.protected void
Handles providers and decorators.int
size()
Page size.size
(int size) Page size.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
page
Page number.Page number starts from
0
.- Parameters:
page
- page number- Returns:
- updated builder instance
- See Also:
-
size
Page size.Valid
size
values are:-1
when no pagination is definedsize > 0
for requested page size
- Parameters:
size
- page size- Returns:
- updated builder instance
- See Also:
-
page
public int page()Page number.Page number starts from
0
.- Returns:
- the page
-
size
public int size()Page size.Valid
size
values are:-1
when no pagination is definedsize > 0
for requested page size
- Returns:
- the size
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-