Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1613

PageImpl created from only a Collection returns invalid size

    Details

      Description

      The following fails:

       

      assert new PageImpl<>( List.of( 1,2,3 ) ).getSize() == 3

       

      Using getNumberOfElements returns the correct size.

      Javadoc getNumberOfElements :

      Returns the number of elements currently on this Slice.

      Javadoc getSize:

      Returns the size of the Slice.

      Both methods should return same value for manually created pages.

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              cdalxndr cda
              Last updater:
              Mark Paluch
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: