Class DefaultedPageable
java.lang.Object
org.springframework.data.rest.webmvc.support.DefaultedPageable
Value object to capture a
Pageable as well whether it is the default one configured.- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultedPageable(org.springframework.data.domain.Pageable pageable, boolean isDefault) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.springframework.data.domain.PageableReturns the delegatePageable.inthashCode()booleanReturns whether the containedPageableis the default one configured.toString()org.springframework.data.domain.PageableReturnsPageable.unpaged()if the containedPageableis the default one.
-
Constructor Details
-
DefaultedPageable
public DefaultedPageable(org.springframework.data.domain.Pageable pageable, boolean isDefault)
-
-
Method Details
-
getPageable
public org.springframework.data.domain.Pageable getPageable()Returns the delegatePageable.- Returns:
- can be null.
-
isDefault
public boolean isDefault()Returns whether the containedPageableis the default one configured.- Returns:
- the isDefault
-
unpagedIfDefault
public org.springframework.data.domain.Pageable unpagedIfDefault()ReturnsPageable.unpaged()if the containedPageableis the default one.- Returns:
- will never be null.
- Since:
- 3.3
-
equals
-
hashCode
public int hashCode() -
toString
-