Class EmptySlice<T>

java.lang.Object
org.springframework.data.gemfire.domain.support.AbstractSliceSupport<T>
org.springframework.data.gemfire.domain.EmptySlice<T>
Type Parameters:
T - Class type of the elements in 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:
EmptyPage

public abstract class EmptySlice<T> extends AbstractSliceSupport<T>
The EmptySlice class is an implementation of an empty Spring Data Slice.
Since:
1.1.0
See Also:
  • Field Details

  • Constructor Details

    • EmptySlice

      public EmptySlice()
  • Method Details

    • hasNext

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

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

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

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

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

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

      public org.springframework.data.domain.Pageable previousPageable()
      Specified by:
      previousPageable in interface org.springframework.data.domain.Slice<T>
      Overrides:
      previousPageable in class AbstractSliceSupport<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>
      Overrides:
      map in class AbstractSliceSupport<T>