Paginator for Java collections.