Single generic class Firebase pager in Java.
You can use this class to save time on writing pagination logic. You can of course edit the class for your own needs.
Tutorial on how to use is here: https://medium.com/@inferion2010/java-made-easy-pagination-in-firebase-with-just-one-line-of-code-7a2c6fcf3ec2