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