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 Summary
FieldsModifier and TypeFieldDescriptionprotected List<ContainerTypeLink>The list of container type links.protected PageThe link to the next page of results.protected PageThe link to the previous page of results. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for creating a new container types list. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of container type links.getList()Gets the list of items in this batch.Gets the next page of results.Gets the previous page of results.intgetSize()Gets the number of items in this batch.voidsetNextPage(Page nextPage) Sets the next page of results.voidsetPreviousPage(Page previousPage) Sets 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
-
containerTypes
The list of container type links. -
previousPage
The link to the previous page of results. -
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
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
Gets the list of items in this batch.- Specified by:
getListin interfaceBatch<ContainerTypeLink>- Returns:
- The list of items.
-
getSize
public int getSize()Gets the number of items in this batch.- Specified by:
getSizein interfaceBatch<ContainerTypeLink>- Returns:
- The size of the batch.
-
getPreviousPage
Gets the previous page of results.- Specified by:
getPreviousPagein interfacePaginatedBatch<ContainerTypeLink>- Returns:
- The previous page, or null if there is no previous page.
-
setPreviousPage
Sets the previous page of results.- Specified by:
setPreviousPagein interfacePaginatedBatch<ContainerTypeLink>- Parameters:
previousPage- The previous page.
-
getNextPage
Gets the next page of results.- Specified by:
getNextPagein interfacePaginatedBatch<ContainerTypeLink>- Returns:
- The next page, or null if there is no next page.
-
setNextPage
Sets the next page of results.- Specified by:
setNextPagein interfacePaginatedBatch<ContainerTypeLink>- Parameters:
nextPage- The next page.
-