Uses of Class
org.springframework.hateoas.PagedModel
Package
Description
Value objects to ease creating
Link
s and link driven representations for REST
webservices.-
Uses of PagedModel in org.springframework.hateoas
Modifier and TypeMethodDescriptionstatic <T> PagedModel<T>
PagedModel.empty()
Creates an emptyPagedModel
.static <T> PagedModel<T>
Creates an emptyPagedModel
with the given fallback type.static <T> PagedModel<T>
Creates an emptyPagedModel
with the given links.static <T> PagedModel<T>
PagedModel.empty
(ParameterizedTypeReference<T> fallbackElementType) Creates an emptyPagedModel
with the given fallback type.static <T> PagedModel<T>
PagedModel.empty
(ResolvableType fallbackElementType) Creates an emptyPagedModel
with the given fallback type.static <T> PagedModel<T>
Creates an emptyPagedModel
with the given links.static <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) PagedModel.withFallbackType
(Class<? super T> type, Class<?>... generics) PagedModel.withFallbackType
(ParameterizedTypeReference<?> type) PagedModel.withFallbackType
(ResolvableType type) 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.