Class ContainerTypes

java.lang.Object
com.genologics.ri.containertype.ContainerTypes
All Implemented Interfaces:
Batch<ContainerTypeLink>, PaginatedBatch<ContainerTypeLink>, Serializable, Iterable<ContainerTypeLink>

public class ContainerTypes extends Object implements PaginatedBatch<ContainerTypeLink>, Serializable
The representation for a list of container type 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

    • containerTypes

      protected List<ContainerTypeLink> containerTypes
      The list of container type links.
    • previousPage

      protected Page previousPage
      The link to the previous page of results.
    • nextPage

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

    • ContainerTypes

      public ContainerTypes()
      Default constructor for creating a new container types list.
  • Method Details

    • getContainerTypes

      public List<ContainerTypeLink> getContainerTypes()
      Gets the list of container type links.

      This is a live list and changes to it will be reflected in the object. If the list doesn't exist, it is created automatically.

      Returns:
      The list of container type links. Never null.
    • getList

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

      public int getSize()
      Gets the number of items in this batch.
      Specified by:
      getSize in interface Batch<ContainerTypeLink>
      Returns:
      The size of the batch.
    • getPreviousPage

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

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

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

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