java.lang.Object
com.genologics.ri.container.Containers
- All Implemented Interfaces:
Batch<ContainerLink>,PaginatedBatch<ContainerLink>,Serializable,Iterable<ContainerLink>
The representation for a list of container 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 Summary
FieldsModifier and TypeFieldDescriptionprotected List<ContainerLink>The list of container links.protected PageThe link to the next page of results.protected PageThe link to the previous page of results. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of container links.getList()Gets the list of container links as required by the PaginatedBatch interface.Gets the link to the next page of results.Gets the link to the previous page of results.intgetSize()Gets the number of container links.voidsetNextPage(Page nextPage) Sets the link to the next page of results.voidsetPreviousPage(Page previousPage) Sets the link to the previous page of results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
containers
The list of container links. -
previousPage
The link to the previous page of results. -
nextPage
The link to the next page of results.
-
-
Constructor Details
-
Containers
public Containers()Default constructor.
-
-
Method Details
-
getContainers
Gets the list of container links. Creates a new list if one doesn't exist.- Returns:
- The list of container links.
-
getList
Gets the list of container links as required by the PaginatedBatch interface.- Specified by:
getListin interfaceBatch<ContainerLink>- Returns:
- The list of container links.
-
getSize
public int getSize()Gets the number of container links.- Specified by:
getSizein interfaceBatch<ContainerLink>- Returns:
- The number of links, or 0 if the list is null.
-
getPreviousPage
Gets the link to the previous page of results.- Specified by:
getPreviousPagein interfacePaginatedBatch<ContainerLink>- Returns:
- The previous page link.
-
setPreviousPage
Sets the link to the previous page of results.- Specified by:
setPreviousPagein interfacePaginatedBatch<ContainerLink>- Parameters:
previousPage- The previous page link.
-
getNextPage
Gets the link to the next page of results.- Specified by:
getNextPagein interfacePaginatedBatch<ContainerLink>- Returns:
- The next page link.
-
setNextPage
Sets the link to the next page of results.- Specified by:
setNextPagein interfacePaginatedBatch<ContainerLink>- Parameters:
nextPage- The next page link.
-