Package | Description |
---|---|
org.springframework.hateoas |
Value objects to ease creating
Link s and link driven representations for REST webservices. |
Modifier and Type | Method and Description |
---|---|
PagedResources.PageMetadata |
PagedResources.getMetadata()
Returns the pagination metadata.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Resource<S>,S> |
PagedResources.wrap(Iterable<S> content,
PagedResources.PageMetadata metadata)
Factory method to easily create a
PagedResources instance from a set of entities and pagination metadata. |
Constructor and Description |
---|
PagedResources(Collection<T> content,
PagedResources.PageMetadata metadata,
Iterable<Link> links)
|
PagedResources(Collection<T> content,
PagedResources.PageMetadata metadata,
Link... links)
Creates a new
PagedResources from the given content, PagedResources.PageMetadata and Link s (optional). |
Copyright © 2012-2016–2018 Pivotal, Inc.. All rights reserved.