Class ResourceCollection<T>

  • Type Parameters:
    T - type of object being paged, e.g. Transaction or Customer.
    All Implemented Interfaces:
    Iterable<T>

    public class ResourceCollection<T>
    extends Object
    implements Iterable<T>
    A collection used to page through query or search results.
    • Field Detail

      • pager

        private Pager<T> pager
      • pageSize

        private int pageSize
    • Constructor Detail

      • ResourceCollection

        public ResourceCollection​(Pager<T> pager,
                                  NodeWrapper response)
    • Method Detail

      • getMaximumSize

        public int getMaximumSize()
        Returns the approximate total size of the collection.
        Returns:
        Approximate size of collection
      • getFirst

        public T getFirst()