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>

public class ReleasePageImpl<T> extends Object implements org.springframework.data.domain.Page<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 Details

    • ReleasePageImpl

      public ReleasePageImpl(List<T> content, org.springframework.data.domain.Pageable pageable, long total)
    • ReleasePageImpl

      public ReleasePageImpl(List<T> content)
  • Method Details

    • getTotalPages

      public int getTotalPages()
      Specified by:
      getTotalPages in interface org.springframework.data.domain.Page<T>
    • getTotalElements

      public long getTotalElements()
      Specified by:
      getTotalElements in interface org.springframework.data.domain.Page<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface org.springframework.data.domain.Slice<T>
    • isLast

      public boolean isLast()
      Specified by:
      isLast in interface org.springframework.data.domain.Slice<T>
    • map

      public <U> org.springframework.data.domain.Page<U> map(Function<? super T,? extends U> converter)
      Specified by:
      map in interface org.springframework.data.domain.Page<T>
      Specified by:
      map in interface org.springframework.data.domain.Slice<T>
      Specified by:
      map in interface org.springframework.data.util.Streamable<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object obj)
    • hashCode

      public int hashCode()
    • getNumber

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

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

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

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

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

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

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

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

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

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

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

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

      protected <U extends Object> List<U> getConvertedContent(Function<? super T,? extends U> arg0)