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 thisSlice
.
- All Implemented Interfaces:
Iterable<T>
,Supplier<Stream<T>>
,org.springframework.data.domain.Slice<T>
,org.springframework.data.util.Streamable<T>
- Direct Known Subclasses:
EmptyPage
The
EmptySlice
class is an implementation of an empty Spring Data Slice
.- Since:
- 1.1.0
- See Also:
-
Pageable
Slice
Sort
AbstractSliceSupport
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.data.gemfire.domain.support.AbstractSliceSupport
getNumberOfElements, getSize, hasContent, isFirst, isLast, iterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.springframework.data.domain.Slice
getPageable, nextOrLastPageable, previousOrFirstPageable
Methods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
Field Details
-
EMPTY_SLICE
-
-
Constructor Details
-
EmptySlice
public EmptySlice()
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
hasNext
in classAbstractSliceSupport<T>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
hasPrevious
in classAbstractSliceSupport<T>
-
getContent
- Specified by:
getContent
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
getContent
in classAbstractSliceSupport<T>
-
getNumber
public int getNumber()- Specified by:
getNumber
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
getNumber
in classAbstractSliceSupport<T>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSort
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
getSort
in classAbstractSliceSupport<T>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()- Specified by:
nextPageable
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
nextPageable
in classAbstractSliceSupport<T>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()- Specified by:
previousPageable
in interfaceorg.springframework.data.domain.Slice<T>
- Overrides:
previousPageable
in classAbstractSliceSupport<T>
-
map
- Specified by:
map
in interfaceorg.springframework.data.domain.Slice<T>
- Specified by:
map
in interfaceorg.springframework.data.util.Streamable<T>
- Overrides:
map
in classAbstractSliceSupport<T>
-