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>CosmosSliceImplimplementation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CosmosSliceImpl(List<T> content, org.springframework.data.domain.Pageable pageable, boolean hasNext)Constructor ofCosmosSliceImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<T>getContent()protected <U extends Object>
List<U>getConvertedContent(Function<? super T,? extends U> arg0)intgetNumber()intgetNumberOfElements()org.springframework.data.domain.PageablegetPageable()intgetSize()org.springframework.data.domain.SortgetSort()booleanhasContent()inthashCode()booleanhasPrevious()booleanisFirst()booleanisLast()Iterator<T>iterator()org.springframework.data.domain.PageablenextPageable()org.springframework.data.domain.PageablepreviousPageable()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
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 Detail
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classorg.springframework.data.domain.SliceImpl<T>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.springframework.data.domain.SliceImpl<T>
-
getNumber
public int getNumber()
- Specified by:
getNumberin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSize
public int getSize()
- Specified by:
getSizein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getNumberOfElements
public int getNumberOfElements()
- Specified by:
getNumberOfElementsin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isFirst
public boolean isFirst()
- Specified by:
isFirstin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isLast
public boolean isLast()
- Specified by:
isLastin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()
- Specified by:
nextPageablein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()
- Specified by:
previousPageablein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasContent
public boolean hasContent()
- Specified by:
hasContentin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getContent
public List<T> getContent()
- Specified by:
getContentin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getPageable
public org.springframework.data.domain.Pageable getPageable()
- Specified by:
getPageablein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSort
public org.springframework.data.domain.Sort getSort()
- Specified by:
getSortin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
iterator
public Iterator<T> iterator()
-
-