Class CosmosSliceImpl<T>
java.lang.Object
org.springframework.data.domain.SliceImpl<T>
com.azure.spring.data.cosmos.core.query.CosmosSliceImpl<T>
- Type Parameters:
T
- the type of which the CosmosSliceImpl consists.
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Supplier<Stream<T>>
,org.springframework.data.domain.Slice<T>
,org.springframework.data.util.Streamable<T>
public class CosmosSliceImpl<T>
extends org.springframework.data.domain.SliceImpl<T>
CosmosSliceImpl
implementation.- See Also:
-
Constructor Summary
ConstructorDescriptionCosmosSliceImpl
(List<T> content, org.springframework.data.domain.Pageable pageable, boolean hasNext) Constructor ofCosmosSliceImpl
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getConvertedContent
(Function<? super T, ? extends U> arg0) int
int
org.springframework.data.domain.Pageable
int
getSize()
org.springframework.data.domain.Sort
getSort()
boolean
int
hashCode()
boolean
boolean
isFirst()
boolean
isLast()
iterator()
org.springframework.data.domain.Pageable
org.springframework.data.domain.Pageable
Methods inherited from class org.springframework.data.domain.SliceImpl
hasNext, map, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.springframework.data.domain.Slice
nextOrLastPageable, previousOrFirstPageable
Methods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
Constructor Details
-
CosmosSliceImpl
public CosmosSliceImpl(List<T> content, org.springframework.data.domain.Pageable pageable, boolean hasNext) Constructor ofCosmosSliceImpl
.- Parameters:
content
- the content of this page, must not be null.pageable
- the paging information, must not be null.hasNext
- whether the query has any more results to fetch
-
-
Method Details
-
equals
- Overrides:
equals
in classorg.springframework.data.domain.SliceImpl<T>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.data.domain.SliceImpl<T>
-
getNumber
public int getNumber()- Specified by:
getNumber
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSize
public int getSize()- Specified by:
getSize
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getNumberOfElements
public int getNumberOfElements()- Specified by:
getNumberOfElements
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isFirst
public boolean isFirst()- Specified by:
isFirst
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isLast
public boolean isLast()- Specified by:
isLast
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()- Specified by:
nextPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()- Specified by:
previousPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasContent
public boolean hasContent()- Specified by:
hasContent
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getContent
- Specified by:
getContent
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getPageable
public org.springframework.data.domain.Pageable getPageable()- Specified by:
getPageable
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSort
in interfaceorg.springframework.data.domain.Slice<T extends Object>
-
iterator
-
getConvertedContent
-