T
- The type of the list's elementsIterable<T>
, org.springframework.data.domain.Page<T>
, org.springframework.data.domain.Slice<T>
, org.springframework.data.util.Streamable<T>
public class UnpagedPageImpl<T> extends Object implements org.springframework.data.domain.Page<T>
Page
implementation that uses only the methods from the
Iterable
interface thus the lazy list from the AWS SDK used as result
set can be properly usedConstructor | Description |
---|---|
UnpagedPageImpl(List<T> content,
long total) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
List<T> |
getContent() |
|
int |
getNumber() |
|
int |
getNumberOfElements() |
|
int |
getSize() |
|
org.springframework.data.domain.Sort |
getSort() |
|
long |
getTotalElements() |
|
int |
getTotalPages() |
|
boolean |
hasContent() |
|
int |
hashCode() |
|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
|
boolean |
isFirst() |
|
boolean |
isLast() |
|
Iterator<T> |
iterator() |
|
<U> UnpagedPageImpl<U> |
map(Function<? super T,? extends U> converter) |
|
org.springframework.data.domain.Pageable |
nextPageable() |
|
org.springframework.data.domain.Pageable |
previousPageable() |
|
String |
toString() |
forEach, spliterator
public int getNumber()
getNumber
in interface org.springframework.data.domain.Slice<T>
public int getSize()
getSize
in interface org.springframework.data.domain.Slice<T>
public int getNumberOfElements()
getNumberOfElements
in interface org.springframework.data.domain.Slice<T>
public org.springframework.data.domain.Sort getSort()
getSort
in interface org.springframework.data.domain.Slice<T>
public boolean isFirst()
isFirst
in interface org.springframework.data.domain.Slice<T>
public boolean isLast()
isLast
in interface org.springframework.data.domain.Slice<T>
public boolean hasNext()
hasNext
in interface org.springframework.data.domain.Slice<T>
public boolean hasPrevious()
hasPrevious
in interface org.springframework.data.domain.Slice<T>
@Nullable public org.springframework.data.domain.Pageable nextPageable()
nextPageable
in interface org.springframework.data.domain.Slice<T>
@Nullable public org.springframework.data.domain.Pageable previousPageable()
previousPageable
in interface org.springframework.data.domain.Slice<T>
public int getTotalPages()
getTotalPages
in interface org.springframework.data.domain.Page<T>
public long getTotalElements()
getTotalElements
in interface org.springframework.data.domain.Page<T>
public <U> UnpagedPageImpl<U> map(Function<? super T,? extends U> converter)
public List<T> getContent()
getContent
in interface org.springframework.data.domain.Slice<T>
public boolean hasContent()
hasContent
in interface org.springframework.data.domain.Slice<T>
Copyright © 2018. All rights reserved.