Class ReagentLots

java.lang.Object
com.genologics.ri.reagentlot.ReagentLots
All Implemented Interfaces:
Batch<ReagentLotLink>, PaginatedBatch<ReagentLotLink>, Serializable, Iterable<ReagentLotLink>

public class ReagentLots extends Object implements PaginatedBatch<ReagentLotLink>, Serializable
Represents a paginated collection of reagent lot links returned by the API.

This class provides access to a batch of reagent lot links with support for pagination through previous and next page references. It implements the PaginatedBatch interface to provide consistent batch operations.

Since:
2.18
See Also:
  • Field Details

    • reagentLots

      protected List<ReagentLotLink> reagentLots
      The list of reagent lot links.
    • nextPage

      protected Page nextPage
      Link to the next page of results, if available.
    • previousPage

      protected Page previousPage
      Link to the previous page of results, if available.
    • uri

      protected String uri
      The URI of this reagent lots collection.
  • Constructor Details

    • ReagentLots

      public ReagentLots()
      Default constructor.
  • Method Details

    • getReagentLots

      public List<ReagentLotLink> getReagentLots()
      Gets the list of reagent lot links in this batch. Creates an empty list if none exists.
      Returns:
      The list of reagent lot links.
    • getList

      public List<ReagentLotLink> getList()
      Description copied from interface: Batch
      Gets the list of items in this batch.
      Specified by:
      getList in interface Batch<ReagentLotLink>
      Returns:
      The list of items.
    • getSize

      public int getSize()
      Description copied from interface: Batch
      Gets the number of items in this batch.
      Specified by:
      getSize in interface Batch<ReagentLotLink>
      Returns:
      The size of the batch.
    • getNextPage

      public Page getNextPage()
      Description copied from interface: PaginatedBatch
      Gets the next page of results.
      Specified by:
      getNextPage in interface PaginatedBatch<ReagentLotLink>
      Returns:
      The next page, or null if there is no next page.
    • setNextPage

      public void setNextPage(Page nextPage)
      Description copied from interface: PaginatedBatch
      Sets the next page of results.
      Specified by:
      setNextPage in interface PaginatedBatch<ReagentLotLink>
      Parameters:
      nextPage - The next page.
    • getPreviousPage

      public Page getPreviousPage()
      Description copied from interface: PaginatedBatch
      Gets the previous page of results.
      Specified by:
      getPreviousPage in interface PaginatedBatch<ReagentLotLink>
      Returns:
      The previous page, or null if there is no previous page.
    • setPreviousPage

      public void setPreviousPage(Page previousPage)
      Description copied from interface: PaginatedBatch
      Sets the previous page of results.
      Specified by:
      setPreviousPage in interface PaginatedBatch<ReagentLotLink>
      Parameters:
      previousPage - The previous page.
    • getUri

      public String getUri()
      Gets the URI of this reagent lots collection.
      Returns:
      The URI.
    • setUri

      public void setUri(String uri)
      Sets the URI of this reagent lots collection.
      Parameters:
      uri - The URI to set.