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