Class WMPageImpl<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable, java.util.function.Supplier, org.springframework.data.domain.Page, org.springframework.data.domain.Slice, org.springframework.data.util.Streamable

    public class WMPageImpl<T>
    extends org.springframework.data.domain.PageImpl
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WMPageImpl​(java.util.List content)  
      WMPageImpl​(java.util.List content, org.springframework.data.domain.Pageable pageable, long total)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<T> getContent()  
      protected <U extends java.lang.Object>
      java.util.List<U>
      getConvertedContent​(java.util.function.Function<? super T,​? extends U> arg0)  
      int getNumber()  
      int getNumberOfElements()  
      org.springframework.data.domain.Pageable getPageable()  
      int getSize()  
      org.springframework.data.domain.Sort getSort()  
      boolean hasContent()  
      boolean hasPrevious()  
      boolean isFirst()  
      java.util.Iterator<T> iterator()  
      org.springframework.data.domain.Pageable nextPageable()  
      org.springframework.data.domain.Pageable previousPageable()  
      java.lang.String toString()  
      • Methods inherited from class org.springframework.data.domain.PageImpl

        equals, getTotalElements, getTotalPages, hashCode, hasNext, isLast, map
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from interface org.springframework.data.domain.Slice

        getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasPrevious, isFirst, 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 Detail

      • WMPageImpl

        public WMPageImpl​(java.util.List content,
                          org.springframework.data.domain.Pageable pageable,
                          long total)
      • WMPageImpl

        public WMPageImpl​(java.util.List content)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.springframework.data.domain.PageImpl
      • getNumber

        public int getNumber()
        Specified by:
        getNumber in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • getSize

        public int getSize()
        Specified by:
        getSize in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • getNumberOfElements

        public int getNumberOfElements()
        Specified by:
        getNumberOfElements in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • isFirst

        public boolean isFirst()
        Specified by:
        isFirst in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • nextPageable

        public org.springframework.data.domain.Pageable nextPageable()
        Specified by:
        nextPageable in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • previousPageable

        public org.springframework.data.domain.Pageable previousPageable()
        Specified by:
        previousPageable in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • hasContent

        public boolean hasContent()
        Specified by:
        hasContent in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • getContent

        public java.util.List<T> getContent()
        Specified by:
        getContent in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • getPageable

        public org.springframework.data.domain.Pageable getPageable()
        Specified by:
        getPageable in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • getSort

        public org.springframework.data.domain.Sort getSort()
        Specified by:
        getSort in interface org.springframework.data.domain.Slice<T extends java.lang.Object>
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T extends java.lang.Object>
      • getConvertedContent

        protected <U extends java.lang.Object> java.util.List<U> getConvertedContent​(java.util.function.Function<? super T,​? extends U> arg0)