Class ListablePage<T>
java.lang.Object
org.springframework.data.gemfire.domain.support.AbstractSliceSupport<T>
org.springframework.data.gemfire.domain.support.AbstractPageSupport<T>
org.springframework.data.gemfire.domain.ListablePage<T>
The
ListablePage
class is a Spring Data Page
implementation wrapping a List
as the content
for this page
.- Since:
- 1.0.0
- Author:
- John Blum
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionListablePage
(List<T> content) Constructs an new instance ofListablePage
initialized with the givenList
used as the content for thispage
. -
Method Summary
Modifier and TypeMethodDescriptionint
getSort()
long
int
boolean
boolean
hasNext()
boolean
iterator()
<S> Page<S>
static <T> ListablePage<T>
newListablePage
(List<T> content) Factory method used to construct a new instance ofListablePage
initialized with the givenList
, serving as the content for thispage
.static <T> ListablePage<T>
newListablePage
(T... content) Factory method used to construct a new instance ofListablePage
initialized with the given array, serving as the content for thispage
.Methods inherited from class org.springframework.data.gemfire.domain.support.AbstractSliceSupport
getNumberOfElements, getSize, isFirst, isLast, nextPageable, previousPageable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.springframework.data.domain.Slice
getNumberOfElements, getPageable, getSize, isFirst, isLast, nextOrLastPageable, nextPageable, previousOrFirstPageable, previousPageable
-
Constructor Details
-
ListablePage
Constructs an new instance ofListablePage
initialized with the givenList
used as the content for thispage
.
-
-
Method Details
-
newListablePage
Factory method used to construct a new instance ofListablePage
initialized with the given array, serving as the content for thispage
.- Type Parameters:
T
-Class
type of the elements in the array.- Parameters:
content
- array of elements serving as the content for thispage
.- Returns:
- a new
ListablePage
initialized with the given array for content. - See Also:
-
newListablePage
Factory method used to construct a new instance ofListablePage
initialized with the givenList
, serving as the content for thispage
. -
hasContent
public boolean hasContent()- Specified by:
hasContent
in interfaceSlice<T>
- Overrides:
hasContent
in classAbstractSliceSupport<T>
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceSlice<T>
- Overrides:
hasPrevious
in classAbstractSliceSupport<T>
-
getContent
- Specified by:
getContent
in interfaceSlice<T>
- Overrides:
getContent
in classAbstractSliceSupport<T>
-
getNumber
public int getNumber() -
getSort
-
getTotalElements
public long getTotalElements()- Specified by:
getTotalElements
in interfacePage<T>
- Overrides:
getTotalElements
in classAbstractPageSupport<T>
-
getTotalPages
public int getTotalPages()- Specified by:
getTotalPages
in interfacePage<T>
- Overrides:
getTotalPages
in classAbstractPageSupport<T>
-
iterator
-
map
-