Class PaginatedList<X,Z extends AnypointObject>

java.lang.Object
com.aeontronix.enhancedmule.tools.util.PaginatedList<X,Z>
All Implemented Interfaces:
Iterable<X>
Direct Known Subclasses:
APIContractList, APIList, APISpecList, AssetList, ClientApplicationList, RoleAssignmentList, RoleGroupList, SLATierList

public abstract class PaginatedList<X,Z extends AnypointObject> extends Object implements Iterable<X>
  • Field Details

    • parent

      protected Z extends AnypointObject parent
    • limit

      protected int limit
    • offset

      protected int offset
    • total

      protected int total
    • list

      protected List<X> list
  • Constructor Details

    • PaginatedList

      public PaginatedList(Z parent)
    • PaginatedList

      public PaginatedList(Z parent, int limit)
  • Method Details

    • buildUrl

      @NotNull protected abstract @NotNull com.aeontronix.commons.URLBuilder buildUrl()
    • download

      public void download() throws HttpException
      Throws:
      HttpException
    • parseJson

      protected void parseJson(String json, JsonHelper jsonHelper)
    • getTotal

      public int getTotal()
    • setTotal

      public void setTotal(int total)
    • size

      public int size()
    • getAll

      public List<X> getAll()
    • iterator

      @NotNull public @NotNull Iterator<X> iterator()
      Specified by:
      iterator in interface Iterable<X>