Class Labs

java.lang.Object
com.genologics.ri.lab.Labs
All Implemented Interfaces:
Batch<LabLink>, PaginatedBatch<LabLink>, Serializable, Iterable<LabLink>

public class Labs extends Object implements PaginatedBatch<LabLink>, Serializable
The representation of a list of lab links.

The system enforces a maximum number of elements when generating the list of links. When the size of the request result set is larger than the system maximum, the list represents a paged view of the overall results, and the previous-page and next-page elements provide URIs linking to the previous or next page of links in the overall results.

See Also:
  • Field Details

    • labs

      protected List<LabLink> labs
      The list of lab links.
    • previousPage

      protected Page previousPage
      The previous page of results.
    • nextPage

      protected Page nextPage
      The next page of results.
  • Constructor Details

    • Labs

      public Labs()
      Constructs a new Labs instance.
  • Method Details

    • getLabs

      public List<LabLink> getLabs()
      Gets the list of lab links.
      Returns:
      the list of lab links.
    • getList

      public List<LabLink> getList()
      Gets the list of lab links (implements PaginatedBatch interface).
      Specified by:
      getList in interface Batch<LabLink>
      Returns:
      the list of lab links.
    • getSize

      public int getSize()
      Gets the size of the lab links list.
      Specified by:
      getSize in interface Batch<LabLink>
      Returns:
      the number of lab links in the list, or 0 if the list is null.
    • getPreviousPage

      public Page getPreviousPage()
      Gets the previous page of results.
      Specified by:
      getPreviousPage in interface PaginatedBatch<LabLink>
      Returns:
      the previous page.
    • setPreviousPage

      public void setPreviousPage(Page previousPage)
      Sets the previous page of results.
      Specified by:
      setPreviousPage in interface PaginatedBatch<LabLink>
      Parameters:
      previousPage - the previous page to set.
    • getNextPage

      public Page getNextPage()
      Gets the next page of results.
      Specified by:
      getNextPage in interface PaginatedBatch<LabLink>
      Returns:
      the next page.
    • setNextPage

      public void setNextPage(Page nextPage)
      Sets the next page of results.
      Specified by:
      setNextPage in interface PaginatedBatch<LabLink>
      Parameters:
      nextPage - the next page to set.