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