Package org.springframework.data.domain
Class ReleasePageImpl<T>
java.lang.Object
org.springframework.data.domain.ReleasePageImpl<T>
- All Implemented Interfaces:
Serializable,Iterable<T>,Supplier<Stream<T>>,org.springframework.data.domain.Page<T>,org.springframework.data.domain.Slice<T>,org.springframework.data.util.Streamable<T>
This is a copy of
PageImpl with a change in constructor.
This keeps total value as it is instead of modifying it.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReleasePageImpl(List<T> content) ReleasePageImpl(List<T> content, org.springframework.data.domain.Pageable pageable, long total) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetConvertedContent(Function<? super T, ? extends U> arg0) intintorg.springframework.data.domain.PageableintgetSize()org.springframework.data.domain.SortgetSort()longintbooleaninthashCode()booleanhasNext()booleanbooleanisFirst()booleanisLast()iterator()<U> org.springframework.data.domain.Page<U>org.springframework.data.domain.Pageableorg.springframework.data.domain.PageabletoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.domain.Slice
getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasPrevious, isFirst, nextOrLastPageable, nextPageable, previousOrFirstPageable, previousPageableMethods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
Constructor Details
-
ReleasePageImpl
-
ReleasePageImpl
-
-
Method Details
-
getTotalPages
public int getTotalPages()- Specified by:
getTotalPagesin interfaceorg.springframework.data.domain.Page<T>
-
getTotalElements
public long getTotalElements()- Specified by:
getTotalElementsin interfaceorg.springframework.data.domain.Page<T>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceorg.springframework.data.domain.Slice<T>
-
isLast
public boolean isLast()- Specified by:
isLastin interfaceorg.springframework.data.domain.Slice<T>
-
map
-
toString
-
equals
-
hashCode
public int hashCode() -
getNumber
public int getNumber()- Specified by:
getNumberin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getNumberOfElements
public int getNumberOfElements()- Specified by:
getNumberOfElementsin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isFirst
public boolean isFirst()- Specified by:
isFirstin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()- Specified by:
nextPageablein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()- Specified by:
previousPageablein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasContent
public boolean hasContent()- Specified by:
hasContentin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getContent
- Specified by:
getContentin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getPageable
public org.springframework.data.domain.Pageable getPageable()- Specified by:
getPageablein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSortin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
iterator
-
getConvertedContent
-