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
ConstructorDescriptionDefaultedPageable
(org.springframework.data.domain.Pageable pageable, boolean isDefault) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.springframework.data.domain.Pageable
Returns the delegatePageable
.int
hashCode()
boolean
Returns whether the containedPageable
is the default one configured.toString()
org.springframework.data.domain.Pageable
ReturnsPageable.unpaged()
if the containedPageable
is 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 containedPageable
is the default one configured.- Returns:
- the isDefault
-
unpagedIfDefault
public org.springframework.data.domain.Pageable unpagedIfDefault()ReturnsPageable.unpaged()
if the containedPageable
is the default one.- Returns:
- will never be null.
- Since:
- 3.3
-
equals
-
hashCode
public int hashCode() -
toString
-