Class PagedArrayList<T>

Type Parameters:
T - the type of elements in this list
All Implemented Interfaces:
PagedList<T>, Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess

public class PagedArrayList<T>
extends ArrayList<T>
implements PagedList<T>
A simple implementation of PagedList based on ArrayList.
Since:
1.2.0
Author:
Christian Beikov, Moritz Becker
See Also:
Serialized Form
  • Constructor Details

    • PagedArrayList

      public PagedArrayList​(KeysetPage keyset, long totalSize, int firstResult, int maxResults)
      Constructs a new empty paged array list.
      Parameters:
      keyset - The keyset page for this page
      totalSize - The total size of the result
      firstResult - The first result index within the overall result
      maxResults - The maximum result count for a page
    • PagedArrayList

      public PagedArrayList​(Collection<? extends T> collection, KeysetPage keyset, long totalSize, int firstResult, int maxResults)
      Constructs a new paged array list from the given collection.
      Parameters:
      collection - The collection of elements for this page
      keyset - The keyset page for this page
      totalSize - The total size of the result
      firstResult - The first result index within the overall result
      maxResults - The maximum result count for a page
  • Method Details