Open in app

Sign In

Write

Sign In

Vinicius Mendes
Vinicius Mendes

32 Followers

Home

About

Jun 15, 2020

Pagination for a list with Spring Pageable

I came up with a scenario in my Spring REST API where the source of data wasn’t paginated. In my tests, the ammount of data could be big in some cases so I decided to paginate the data in my API. As I was already using Spring Pageable in my API an for me it is the natural way to paginate data in Spring APIs. So I created a method to paginate the list of data from my not paginated source: This way we can keep the same signature for pagination used for Spring Data API. The usage is like this:

Spring

1 min read

Spring

1 min read


Oct 31, 2019

Joining strings in Java 8 with null safety

I have worked with Python for many years, but now I am workig with Java and having a little of experience with inovations in the direction of functional programming brought by Java 8. In a scenario where I have two Strings wich both can be null, I want to join…

Java

1 min read

Java

1 min read

Vinicius Mendes

Vinicius Mendes

32 Followers
Following
  • Netanel Basal

    Netanel Basal

  • David Gilbertson

    David Gilbertson

  • Aline Alencar

    Aline Alencar

  • Giuliana Bezerra

    Giuliana Bezerra

  • Luiz Gustavo Amorim

    Luiz Gustavo Amorim

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech