Class PagedModel<T>
java.lang.Object
org.springframework.data.web.PagedModel<T>
DTO to build stable JSON representations of a Spring Data
Page. It can either be selectively used in
controller methods by calling new PagedModel<>(page) or generally activated as representation model for
PageImpl instances by setting
EnableSpringDataWebSupport's pageSerializationMode to
EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO.- Since:
- 3.3
- Author:
- Oliver Drotbohm, Greg Turnquist
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PagedModel
Creates a newPagedModelfor the givenPage.- Parameters:
page- must not be null.
-
-
Method Details
-
getContent
-
getMetadata
-
equals
-
hashCode
-