Class AbstractSliceSupport<T>

java.lang.Object
org.springframework.data.gemfire.domain.support.AbstractSliceSupport<T>
Type Parameters:
T - Class type of the individual elements on this Slice.
All Implemented Interfaces:
Iterable<T>, Supplier<Stream<T>>, org.springframework.data.domain.Slice<T>, org.springframework.data.util.Streamable<T>
Direct Known Subclasses:
AbstractPageSupport, EmptySlice

public abstract class AbstractSliceSupport<T> extends Object implements org.springframework.data.domain.Slice<T>
The AbstractSliceSupport class is an abstract Spring Data Slice type supporting the implementation of application specific Slice implementations.
Since:
1.1.0
See Also:
  • Converter
  • Page
  • Pageable
  • Slice
  • Sort
  • Constructor Details

    • AbstractSliceSupport

      public AbstractSliceSupport()
  • Method Details

    • hasContent

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

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

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

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

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

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

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

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

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

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

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • map

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

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

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