What is the difference between getSize()and getNumberOfElementsin the Spring Data class org.springframework.data.domain.Slice?
getSize()
getNumberOfElements
org.springframework.data.domain.Slice
Javadoc does not offer too much help here.
getSize () returns the slice capacity.
getNumberOfElements () how many elements the fragment contains.
: PagingAndSortingRepository. repo.findAll( PageRequest (0,30)), , , 30 . , 10 , , 30, numberOfElements - 10.
.
, , 55 , - 10.
getSize - ( ),
: , 10 . , getSize() 10 .
getNumberOfElements -
: - 10 10 . 5 .
org.springframework.data.domain.AbstractPageRequest.java -
org.springframework.data.domain.Chunk - getNumberOfElements(), (.. )
Source: https://habr.com/ru/post/1652030/More articles:How to partially update a region object - javaHow to draw a line with a custom round pen in Qt - qthide div if specific text is displayed in between - javascriptHide tabs ViewPager dynamically - androidJquery onclick event with angular datatable - jquerySearch bar, such as Google in HTML and CSS - htmlКак получить определения сборки из TFS с использованием REST API в виджетах VSTS? - restдобавление гиперссылок в некоторые ячейки openpyxl - pythonCan nginx handle duplicate X-Forwarded-For headers? - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1652035/feed-native-javascript-objects-to-react&usg=ALkJrhjvRGiyDQF09tmfytSGykoOSiEL2gAll Articles