Class EmptySlice<T>
java.lang.Object
org.springframework.data.gemfire.domain.support.AbstractSliceSupport<T>
org.springframework.data.gemfire.domain.EmptySlice<T>
- All Implemented Interfaces:
Iterable<T>
,Supplier<Stream<T>>
,Slice<T>
,Streamable<T>
- Direct Known Subclasses:
EmptyPage
The
EmptySlice
class is an implementation of an empty Spring Data Slice
.- Since:
- 1.1.0
- Author:
- John Blum
- See Also:
-
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
-
Field Details
-
EMPTY_SLICE
-
-
Constructor Details
-
EmptySlice
public EmptySlice()
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceSlice<T>
- Overrides:
hasPrevious
in classAbstractSliceSupport<T>
-
getContent
- Specified by:
getContent
in interfaceSlice<T>
- Overrides:
getContent
in classAbstractSliceSupport<T>
-
getNumber
public int getNumber() -
getSort
-
nextPageable
- Specified by:
nextPageable
in interfaceSlice<T>
- Overrides:
nextPageable
in classAbstractSliceSupport<T>
-
previousPageable
- Specified by:
previousPageable
in interfaceSlice<T>
- Overrides:
previousPageable
in classAbstractSliceSupport<T>
-
map
- Specified by:
map
in interfaceSlice<T>
- Specified by:
map
in interfaceStreamable<T>
- Overrides:
map
in classAbstractSliceSupport<T>
-