Uses of Class
org.springframework.hateoas.PagedModel.PageMetadata
Package
Description
Value objects to ease creating
Link
s and link driven representations for REST
webservices.-
Uses of PagedModel.PageMetadata in org.springframework.hateoas
Modifier and TypeMethodDescriptionstatic <T> PagedModel<T>
PagedModel.empty
(PagedModel.PageMetadata metadata) Creates an emptyPagedModel
with the givenPagedModel.PageMetadata
.static <T> PagedModel<T>
PagedModel.empty
(PagedModel.PageMetadata metadata, Class<?> fallbackType, Class<?>... generics) Creates an emptyPagedModel
with the givenPagedModel.PageMetadata
and fallback type.static <T> PagedModel<T>
PagedModel.empty
(PagedModel.PageMetadata metadata, Iterable<Link> links) Creates an emptyPagedModel
with the givenPagedModel.PageMetadata
and links.static <T> PagedModel<T>
PagedModel.empty
(PagedModel.PageMetadata metadata, ParameterizedTypeReference<T> fallbackType) Creates an emptyPagedModel
with the givenPagedModel.PageMetadata
and fallback type.static <T> PagedModel<T>
PagedModel.empty
(PagedModel.PageMetadata metadata, ResolvableType fallbackType) Creates an emptyPagedModel
with the givenPagedModel.PageMetadata
and fallback type.static <T> PagedModel<T>
PagedModel.empty
(PagedModel.PageMetadata metadata, Link... links) Creates an emptyPagedModel
with the givenPagedModel.PageMetadata
and links.static <T> PagedModel<T>
PagedModel.of
(Collection<T> content, PagedModel.PageMetadata metadata) static <T> PagedModel<T>
PagedModel.of
(Collection<T> content, PagedModel.PageMetadata metadata, Iterable<Link> links) static <T> PagedModel<T>
PagedModel.of
(Collection<T> content, PagedModel.PageMetadata metadata, Link... links) static <T extends EntityModel<S>,
S>
PagedModel<T>PagedModel.wrap
(Iterable<S> content, PagedModel.PageMetadata metadata) Factory method to easily create aPagedModel
instance from a set of entities and pagination metadata.ModifierConstructorDescriptionprotected
PagedModel
(Collection<T> content, PagedModel.PageMetadata metadata) protected
PagedModel
(Collection<T> content, PagedModel.PageMetadata metadata, Iterable<Link> links) protected
PagedModel
(Collection<T> content, PagedModel.PageMetadata metadata, Iterable<Link> links, ResolvableType fallbackType)