java.lang.Object
com.genologics.ri.reagentlot.ReagentLots
- All Implemented Interfaces:
Batch<ReagentLotLink>,PaginatedBatch<ReagentLotLink>,Serializable,Iterable<ReagentLotLink>
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 Summary
FieldsModifier and TypeFieldDescriptionprotected PageLink to the next page of results, if available.protected PageLink to the previous page of results, if available.protected List<ReagentLotLink>The list of reagent lot links.protected StringThe URI of this reagent lots collection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetList()Gets the list of items in this batch.Gets the next page of results.Gets the previous page of results.Gets the list of reagent lot links in this batch.intgetSize()Gets the number of items in this batch.getUri()Gets the URI of this reagent lots collection.voidsetNextPage(Page nextPage) Sets the next page of results.voidsetPreviousPage(Page previousPage) Sets the previous page of results.voidSets the URI of this reagent lots collection.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
-
reagentLots
The list of reagent lot links. -
nextPage
Link to the next page of results, if available. -
previousPage
Link to the previous page of results, if available. -
uri
The URI of this reagent lots collection.
-
-
Constructor Details
-
ReagentLots
public ReagentLots()Default constructor.
-
-
Method Details
-
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
Description copied from interface:BatchGets the list of items in this batch.- Specified by:
getListin interfaceBatch<ReagentLotLink>- Returns:
- The list of items.
-
getSize
public int getSize()Description copied from interface:BatchGets the number of items in this batch.- Specified by:
getSizein interfaceBatch<ReagentLotLink>- Returns:
- The size of the batch.
-
getNextPage
Description copied from interface:PaginatedBatchGets the next page of results.- Specified by:
getNextPagein interfacePaginatedBatch<ReagentLotLink>- Returns:
- The next page, or null if there is no next page.
-
setNextPage
Description copied from interface:PaginatedBatchSets the next page of results.- Specified by:
setNextPagein interfacePaginatedBatch<ReagentLotLink>- Parameters:
nextPage- The next page.
-
getPreviousPage
Description copied from interface:PaginatedBatchGets the previous page of results.- Specified by:
getPreviousPagein interfacePaginatedBatch<ReagentLotLink>- Returns:
- The previous page, or null if there is no previous page.
-
setPreviousPage
Description copied from interface:PaginatedBatchSets the previous page of results.- Specified by:
setPreviousPagein interfacePaginatedBatch<ReagentLotLink>- Parameters:
previousPage- The previous page.
-
getUri
Gets the URI of this reagent lots collection.- Returns:
- The URI.
-
setUri
Sets the URI of this reagent lots collection.- Parameters:
uri- The URI to set.
-