public interface ResourcesAssembler<T,D extends org.springframework.hateoas.RepresentationModel>
ResourceAssembler
but for resource collections.Modifier and Type | Method and Description |
---|---|
org.springframework.hateoas.CollectionModel<D> |
toCollectionModel(Iterable<? extends T> entities)
Converts all given entities into resources and wraps the collection as a resource as well.
|
org.springframework.hateoas.CollectionModel<D> toCollectionModel(Iterable<? extends T> entities)
entities
- must not be null.Resources
containing EntityModel
of T
.RepresentationModelAssembler.toModel(Object)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.