Class EmptyPage<T>

Type Parameters:
T - Class type of the elements in this Page.
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>

public final class EmptyPage<T> extends EmptySlice<T> implements org.springframework.data.domain.Page<T>
The EmptyPage class is an implementation of an empty Spring Data Page.
Since:
1.1.0
See Also:
  • Converter
  • Page
  • Field Details

    • EMPTY_PAGE

      public static final EmptyPage<?> EMPTY_PAGE
  • Constructor Details

    • EmptyPage

      public EmptyPage()
  • 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>
    • map

      public <S> org.springframework.data.domain.Page<S> map(Function<? super T,? extends S> 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>
      Overrides:
      map in class EmptySlice<T>