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>
- All Implemented Interfaces:
Iterable<T>
,Supplier<Stream<T>>
,org.springframework.data.domain.Page<T>
,org.springframework.data.domain.Slice<T>
,org.springframework.data.util.Streamable<T>
The
ListablePage
class is a Spring Data Page
implementation wrapping a List
as the content
for this page
.- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionListablePage
(List<T> content) Constructs an new instance ofListablePage
initialized with the givenList
used as the content for thispage
. -
Method Summary
Modifier and TypeMethodDescriptionint
org.springframework.data.domain.Sort
getSort()
long
int
boolean
boolean
hasNext()
boolean
iterator()
<S> org.springframework.data.domain.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
Methods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
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 interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
hasContent
in classAbstractSliceSupport<T>
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
hasNext
in classAbstractSliceSupport<T>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
hasPrevious
in classAbstractSliceSupport<T>
-
getContent
- Specified by:
getContent
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
getContent
in classAbstractSliceSupport<T>
-
getNumber
public int getNumber()- Specified by:
getNumber
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
getNumber
in classAbstractSliceSupport<T>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSort
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
getSort
in classAbstractSliceSupport<T>
-
getTotalElements
public long getTotalElements()- Specified by:
getTotalElements
in interfaceorg.springframework.data.domain.Page<T>
- Overrides:
getTotalElements
in classAbstractPageSupport<T>
-
getTotalPages
public int getTotalPages()- Specified by:
getTotalPages
in interfaceorg.springframework.data.domain.Page<T>
- Overrides:
getTotalPages
in classAbstractPageSupport<T>
-
iterator
-
map
-